Trapping keystrokes in a DataGridView

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm trying to trap the user's keystrokes in the cells of a 2005 DataGridView.
KeyDown and KeyPress don't work -- is there some other way to do it? I want
to limit entry in the grid to certain characters.

Thanks,
Nathan
 
Nathan,

I did not do it with a datagridview yet, however the textboxcolumn is with
the datagrid to use as an almost normal textbox.

http://www.vb-tips.com/default.aspx?ID=bece831d-6742-4364-bd0d-203ca99d2825

Here is one sample about that datagrid, of course not exactly what you ask,
however in my idea should a smart programmer able to use this to get what he
wants looking at this.

There is more about this on our website, I just took one.

I hope this helps,

Cor
 
Back
Top