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 Setting Cell Text Color by Column

DevExpress XtraGrid Clicking Cells to Edit

DevExpress XtraGrid Column Header Post Settings

Displaying The DevExpress XtraGrid Footer

DevExpress XtraGrid Row Header Invisible