Disable Insert In DataGrid

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?
 
D

Dan Cimpoiesu

Define a dataview that has AllowNew=false, thend bind the DataGrid on it.

Hope this helps
Dan Cimpoiesu
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top