DevExpress XtraGrid Selecting Entire Row on Row Click

When a row is clicked in DevExpress XtraGrid, the following steps must be taken to select all cells in that row.

  • 1 - "Run Designer" opens.
  • 2 - Select "Views" from the left panel.
  • 3 - Select "RowFullFocus" from the "FocusRectStyle" property from the right panel.

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


this.myListGridView.FocusRectStyle = DevExpress.XtraGrid.Views.Grid.DrawFocusRectStyle.RowFullFocus;      



You May Interest

DevExpress XtraGrid Clicking Cells to Edit

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

Demonstration of DevExpress XtraGrid Search Panel

DevExpress XtraGrid Setting Cell Text Color by Column

DevExpress XtraGrid Cell Information Horizontal Alignment Adjustm ...