Friday, January 14, 2005

Restricting addition of new rows to Windows Forms Datagrid

/// Set Allownew to false
CurrencyManager cm = (CurrencyManager) this.BindingContext[uDgBookings.DataSource, uDgBookings.DataMember];
((DataView) cm.List).AllowNew = false;

No comments: