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 08:57 PM UTC

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


NA Naveen February 17, 2005 12:32 PM UTC

> >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 21, 2005 04:45 AM UTC

Hi Just set DataGrid1.ReadOnly=true


PR prasanna January 2, 2006 03:25 AM UTC

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

Loader.
Up arrow icon