471,353 Members | 1,681 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

Controlling DataGrid Input

I have created a datatable inside of a datagrid to be populated by a user.
Then it will be uploaded into a sql database. I need to control the number of
characters typed into each cell. I tried:

Col2.MaxLength = 60

This allows the user to put in any number of characters and then after they
click off, it checks the characters and if characters are > 60 then displays
and error msg to the user.

I want it to disable any more characters into that cell after it has hit 60
characters, with no error msg.

I tried using a keydown event handler on the datagrid to disabled keys
entered, but this only works on the layout of the grid and not the table

Please Help

Jul 21 '05 #1
0 745

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by dba56 | last post: by
2 posts views Thread by Luis Esteban Valencia Muñoz | last post: by
reply views Thread by David Baumgarten | last post: by
8 posts views Thread by GaryDean | last post: by
6 posts views Thread by =?Utf-8?B?QmVuLg==?= | 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.