how to make fields in datagrid non editable

smriti

Regular
Joined
Jan 7, 2005
Messages
54
I populated datagrid by binding it to dataset
i am able to edit i mean delete , change the values of the fields present in datagrid, i don't want this to happen even though this doesnot reflect the data base.

if any one know kindly reply soon

Thanks
 
One thing you could try is to create a TableStyle for the DataGrid, it is in the properties list. It pops up a collection editor for the tablestyle, and one of the properties for that is the ReadOnly property, which defaults to false. Change that to true and you shouldn't be able to make changes to the datagrid.
 
Back
Top