3

Hi I have a devexpress grid on the form. I enable the incremental search on one of the columns. But I find I need to click the column header each time when I perform one search. Is there a way to simulate such header or column click in grid control?

I also try in gridcontrol_keydown event to set the focused row, but this one only works for once, after performing one search, I need to click the column header or the column again, otherwise the incremental search doesn't work anymore.

Thanks!

ralf.w.
  • 1,676
  • 1
  • 24
  • 34
spspli
  • 3,128
  • 11
  • 48
  • 75
  • Could you explain which XtraGrid settings you are using to enable incremental search? – KingCronus Mar 14 '12 at 16:32
  • You can find the detailed explanation in this document: http://help.devexpress.com/#WindowsForms/CustomDocument779 – Uranus Apr 19 '12 at 19:27

1 Answers1

1

The column (or cell) click is required only to set focus to the column under which you want to search data. It is possible to focus a column programmatically. Use the ColumnView.FocusedColumn property.

Uranus
  • 1,690
  • 1
  • 12
  • 22