471,349 Members | 1,165 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,349 software developers and data experts.


I'm playing around, albeit quite seriously, with Visual C# 2005 Express
Edition. I added a DataGridViewTextBoxColumn to a DataGridView. I want to
only allow this column to contain left parentheses. I also have one that
should only contain right parens, in case you're wondering. I couldn't find
a property where I could designate an input mask as such, so I decided to
try to handle the KeyDown event and override anything but the desired key
for those two columns. Much to my surprise, the KeyDown event doesn't fire
on these columns added at runtime, but it will fire for the other columns.
Am I missing something? Do I have to indicate an event handler for columns
added as such and if so, how?

Tim Wallace
Jul 21 '05 #1
0 2146

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Tim Wallace | last post: by
3 posts views Thread by michael_geller | last post: by
reply views Thread by PawelR | last post: by
reply views Thread by =?Utf-8?B?cG1haw==?= | last post: by
6 posts views Thread by Wesley Peace | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.