I have a DataGridView that is ReadOnly. I would like to implement "type ahead" functionality for a column (DataGridViewTextBoxColumn) of the grid.
I have seen examples for how this is done. For example:
http://vb.net-informations.com/datagridview/vbauto.htm
The example in the above link works for a grid that is not read-only, but it doesn't work for a read-only grid because the EditingControlShowing event is never raised.
This example makes use of the DataGridViewEditingControlShowingEventArgs to cast the selected cell as a TextBox.
Is there a way to do this for a read-only grid?
I have seen examples for how this is done. For example:
http://vb.net-informations.com/datagridview/vbauto.htm
The example in the above link works for a grid that is not read-only, but it doesn't work for a read-only grid because the EditingControlShowing event is never raised.
This example makes use of the DataGridViewEditingControlShowingEventArgs to cast the selected cell as a TextBox.
Code:
TryCast(e.Control, TextBox)