Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 15072

VS 2019 DataGridView Autocomplete TextBox

$
0
0
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.

Code:

TryCast(e.Control, TextBox)
Is there a way to do this for a read-only grid?

Viewing all articles
Browse latest Browse all 15072

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>