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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Preventing datagrid To add a new record

Thread ID:

Created:

Updated:

Platform:

Replies:

3004 Feb 25,2003 01:15 PM UTC Jan 2,2006 03:25 AM UTC Windows Forms 4
loading
Tags: FAQ
NAUMAN
Asked On February 25, 2003 01:15 PM UTC

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

Administrator [Syncfusion]
Replied On February 9, 2005 08:57 PM UTC

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

Naveen
Replied On 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.

Administrator [Syncfusion]
Replied On December 21, 2005 04:45 AM UTC

Hi Just set DataGrid1.ReadOnly=true

prasanna
Replied On 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

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;