Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

DataGridView - KeyDown in EditMode

$
0
0

Using VB2008, I want to look at each character that is entered into a DataGridView cell and perform some actions when necessary. For example, the user enters a couple characters and then presses F3. The F3 function looks up data for the cell and uses the first characters as its starting point. It works great in a TextBox. However the behaviour in a DGV cell is different. When characters are entered into a DGV cell, the cell goes into edit mode. The KeyDown nor KeyPress events does not fire while the cell is in edit mode.

 

How can I examine each keyPress value that is done in a DGV cell?


Price Brattin, SQLServer MCP, Microsoft Dynamics SL Consultant

Viewing all articles
Browse latest Browse all 2535

Trending Articles



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