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

DataGrid

How can I hide or disable the new row in a DataGrid?

1 Reply

AD Administrator Syncfusion Team April 23, 2003 10:50 AM UTC

//C#
CurrencyManager cm = (CurrencyManager)this.BindingContext[this.gridDataBoundGrid1.DataSource, this.gridDataBoundGrid1.DataMember];
			((DataView)cm.List).AllowNew = false;

'VB
Dim cm As CurrencyManager = Me.BindingContext(Me.GridDataBoundGrid1.DataSource, Me.GridDataBoundGrid1.DataMember)
CType(cm.List, DataView).AllowNew = False

Loader.
Up arrow icon