Reputation: 2331
Hello I have a datagridview with many rows. I would like to be able to click on a cell and type some letters and have a matching row get selected (or scroll to it). I can sort out which column it is sorting to, but right now there is no 'search' capability.
When you open a Window's Explorer window and click on a file, you can start typing to have the selection move to the file/folder that matches your keystrokes.
Is this possible with the datagridview?
Upvotes: 0
Views: 192
Reputation: 28699
What I meant was the DataGridRow.IsSelected property. Since you said you know which rows contains your results, you can call DataGridView.ClearSelection() and then set the IsSelected
property of the row that contains the data to true.
Upvotes: 1