Start Datagridviewcomboboxcolumn cellvalidating

Datagridviewcomboboxcolumn cellvalidating

event, which enables the control look up values in the data cache.

For more information about using virtual mode to maintain the values in unbound columns, see the examples in the Data Grid View Check Box Column. For example, you can use virtual mode to implement a just-in-time data loading mechanism that retrieves only as much data from a networked database as is necessary for optimal performance.

This scenario is particularly useful when working with large amounts of data over a slow network connection or with client machines that have a limited amount of RAM or storage space.

You can also handle events that let you maintain values not typically stored in a bound data source, such as cell Tool Tip text, cell and row error text, cell and row shortcut menu data, and row height data.

For more information about implementing virtual mode to manage read/write data with a row-level commit scope, see Walkthrough: Implementing Virtual Mode in the Windows Forms Data Grid View Control.

It turns out that this is trickier than it might seem and doesn’t work great out of the box from .

NET, but, not to fear, there are several easy work-arounds that will get the trick done.

I start typing and hit Enter, and I get a blank item added to the list and activated.