We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Preventing datagrid To add a new record

How can i Prevent a datagrid To add a new record.

4 Replies

AD Administrator Syncfusion Team February 9, 2005 03:57 PM

This is also something I would like to know. Does anyone have a clue?


NA Naveen February 17, 2005 07:32 AM

> >How can i Prevent a datagrid To add a new record. you can prevent a datagrid from adding a new record. for that you have to attach a DataTable to the Datagrid. eg: - datagrid.datasource = dt; After which you have to create a dataview for the datatable. eg: dataview dv = dt.defaultview; dv.allownew = false; This will do the job.


AD Administrator Syncfusion Team December 20, 2005 11:45 PM

Hi Just set DataGrid1.ReadOnly=true


PR prasanna January 1, 2006 10:25 PM

> >How can i Prevent a datagrid To add a new record. If you are not editing in the grid then datagrid1.readonly = true

Loader.
Live Chat Icon For mobile
Up arrow icon