cxGrid immediate row selection

Viewed 987

What settings must I apply to a cxGrid so I can have an immediate row selection when I click inside the grid ?

I want to select a desired row immediately.

Right now I must first click the grid and then select the row.

1 Answers
  GridView.Control.SetFocus;
  // just in case if DataSet is UniDirectional:
  if GridView.DataController.FocusedRowIndex < 0 then
    GridView.DataController.FocusedRowIndex := 0;
Related