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

DevExpress XtraGrid Clicking Cells to Edit

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

Displaying The DevExpress XtraGrid Footer

DevExpress XtraGrid Cell Text Settings by Column

Setting DevExpress XtraGrid Row Height