|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Validating Data in a DataGridI have a column in a datagrid that I want to limit the values to
integers from 1 to 5. What is the best way to do this? The datagrid is bound to a typed dataset that is populated from an XML file. With thanks Dave Devlei wrote:
> I have a column in a datagrid that I want to limit the values to You need to inherit from datagridtextboxcolumn class and override the > integers from 1 to 5. What is the best way to do this? > > The datagrid is bound to a typed dataset that is populated from an XML > file. > > With thanks > Dave > keypress event to handle the keystrokes. then add this new datagridtextboxcolumn to you tablestyle instead of the normal class. Chris Devlei,
You saw already this tip on our website. http://www.vb-tips.com/default.aspx?ID=bece831d-6742-4364-bd0d-203ca99d2825 Cor Hi Cor
Thanks for the link!! I can follow it all except the CellValidating procedure (last three lines). Where do I specify the validation values (ie 1 to 5)? With thanks Dave
Datagridview cell background color?
simple thread question appending colored / fonted <?> text to a richtextbox Drawing points in degrees!!! arraylist to use in another form Drawing a square (or circles) before each item of a treeview Textbox Click Event needed. 'System.Security.SecurityException' with .NET 2005 Only private font collection - delete After 2003 to 2005 Upgrade Wizard, Getting System.Security.SecurityException |
|||||||||||||||||||||||