473,385 Members | 1,838 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,385 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
itself.

Please Help

Thanks,
Nov 22 '05 #1
0 699

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

Similar topics

0
by: David Baumgarten | last post by:
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: ...
1
by: TB | last post by:
Hi All: I have this datagrid where space is very tight, and therefore I have to make sure that everything fits within a fixed screen width regardless of whether I am in list mode or in edit...
2
by: ddaniel | last post by:
I have read many posts and seen many papers on the different techniques for sort and filtering datagrids. Many do re-queries against the dB ala Fritz Onion. I am trying to leverage the Dataview....
0
by: Chris Fink | last post by:
I have the need to perform some javascript code on a rendered datalist. However, the problem is that the objects that I want to control via javascript have been given unique names when the datalist...
3
by: dba56 | last post by:
I have a panel containing textboxes and buttons which I use as a header for a datagrid on a webform. I would like the panel width to match the datagrid width. The datagrid width grows depending...
2
by: Luis Esteban Valencia Muñoz | last post by:
I have a datagrid that displays editable text fields (2 different price fields) and a checkbox in every row. It has a "SaveChanges" button at the bottom, which, when pressed, looks at every...
8
by: GaryDean | last post by:
We have been noticing that questions on vs.2005/2.0 don't appear to get much in answers so I'm reposting some questions posted by some of the programmers here in our organization that never got...
1
by: Mario Figueiredo | last post by:
Hello everyone, I'm having trouble controlling the cursor position when I make two consecutive calls to the get family of functions. This problem does not happen if there is an output in...
6
by: =?Utf-8?B?QmVuLg==?= | last post by:
Hi, I'm more of a windows programmer than ASP and I've having a little difficulty in ASP.Net (framework 2.0) - VB.net I have a datagrid on an aspx page and the html is building the display in...
1
by: Cainnech | last post by:
Hello all, I have a big challenge ahead of me but I'm gonna need a lot of help from experts on this one. I have to create a system that can receive input from external devices. So when users...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...

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.