473,396 Members | 2,154 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

DataGridViewTextBoxColumn

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 2217

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Tim Wallace | last post by:
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...
3
by: michael_geller | last post by:
While experimenting with binding datasets to an MS DataGridView, I get a warning that tells me that my DataRows are "either undeclared or was never assigned". Assuming that I am reading the...
2
by: johnb41 | last post by:
When you programmatically bind data to a DataGridView (VS2005), the resulting columns are DataGridViewTextBoxColumns. Instead of that, i'd like it to be a DataGridViewComboBoxColumn. How can I do...
1
by: mfunkmann | last post by:
Hi, I recently got an error and I don't know how to fix it: Error 1 'System.Data.DataColumn' does not contain a definition for 'Windows' C:\c#\CsharpPRO\Form1.Designer.cs 304 77 CsharpPRO I...
1
by: Gohalien | last post by:
Hello, I am trying to makethat user will be unable to enter a "," in a cell What I was thinking was to make a custom columntype, and indeed, I created it, I have to override OnKeyPress event. ...
0
by: frostbb | last post by:
Ok, stumped one more time, I'm trying to learn how to use a DataGridView in place of the old DataGrid control. QUESTION: How do I map the columns returned from a RunTime sql query to the columns...
0
by: PawelR | last post by:
Hi group, In my apps I have DataTable dtData. This table I show in DataGridView. One of columns is bit type in SQL database - in apps i is bool type. For set DataGridColumnStyle I use:...
0
by: =?Utf-8?B?cG1haw==?= | last post by:
I try to implement a AutoComplete function to the datagridviewtextboxcolumn to a Datagridview control with several others datagridviewtextboxcolumns. This function is meant to apply to the column,...
6
by: Wesley Peace | last post by:
I hate to cross post, but I've gotten no answer yet on a problem I'm having with visual studio 2008. I've created a series of forms with controls to access a Access database tables. The...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.