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

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

$
0
0
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/boar d2/read.html?f=1&i=35363&t=305 32

  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

Viewing all articles
Browse latest Browse all 2535

Trending Articles



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