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

Setting DevExpress XtraGrid Row Height

DevExpress XtraGrid Row Header Invisible

Getting Value of DevExpress XtraGrid Column

DevExpress XtraGrid Column Header Post Settings

DevExpress XtraGrid Selecting Entire Row on Row Click