DevExpress XtraGrid Setting Color of Selected Row

To set a selected row in DevExpress XtraGrid to be in the specified color, the following steps are followed.

  • 1 - "Run Designer" opens.
  • 2 - Select "Views" from the left panel.
  • 3 - Select "Appearance" and again "Appearance" from the right panel.
  • 4 - Select "FocusedRow" from the drop-down menu.
  • 5 - The desired color is assigned from the "BackColor" property.

An example of setting it as code is given below..


this.myListGridView.Appearance.FocusedRow.BackColor = System.Drawing.Color.LightGray;       



You May Interest

Demonstration of DevExpress XtraGrid Search Panel

DevExpress XtraGrid Cell Information Horizontal Alignment Adjustm ...

DevExpress XtraGrid Clicking Cells to Edit

DevExpress XtraGrid Selecting Entire Row on Row Click

DevExpress XtraGrid Selecting Only Cell on Row Click