Disable Insert In DataGrid

  • Thread starter Thread starter Rxd
  • Start date Start date
R

Rxd

I have a datagrid that is bound to a dataset in C#. My problem is that when you
scroll down past the last record in my dataset the grid goes into insert mode
and lets you add a new record. This isn't valid for my app (you can edit any
value but you can't add). Is there anyway to prevent the datagrid from allowing
new rows to be added?
 
Define a dataview that has AllowNew=false, thend bind the DataGrid on it.

Hope this helps
Dan Cimpoiesu
 
Back
Top