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

Putting Multi Selection and Checkbox Columns in DevExpress XtraGr ...

Demonstration of DevExpress XtraGrid Search Panel

Freezing a DevExpress XtraGrid Column

Setting DevExpress XtraGrid Row Height

DevExpress XtraGrid Row Header Invisible