DataGridView, how to capture a cell's KeyPress event...

L

LordHog

Hello all,

I am trying to implement an event handler for the KeyPress event for
a cell within a DataGridView control. The obvous starting point from
the DataGridView keypress event, but this doesn't work for the cell. I
found this posting while searching, but this doesn't work with the .NET
2.0 beta framework.

http://www.csharphelp.com/board2/read.html?f=1&i=35363&t=30532

I was trying to attempting something with the following...

PropertyDescriptorCollection pcol =
this.BindingContext[dtCanRegisters].GetItemProperties();

Then assign the DataGridTableStyel to the properties, but I can't get
it to work. Any ideas or suggestions? I am using VS.NET 2005 Express
beta...

Mark
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top