Home All Groups Group Topic Archive Search About

Validating the cell contents of a datagrid dynamically

Author
23 Nov 2004 8:19 AM
Prashant Kumar via DotNetMonster.com
Hi,
I need to validate the contents of a datagrid cell against the datatype of the respective column of the datatable (datasource). The datagrid is allocated the datasource at runtime. So there is no fixed column pattern.
For instance, if my datatables first column is of type int, I need to invoke the validation on Currentcellchanged event of the datagrid & check if the modified value of the cell is an int.
Any help would be appreciated.

Thanks,
Pras.

--
Message posted via http://www.dotnetmonster.com

AddThis Social Bookmark Button