DataGrid AllowNew = False

  • Thread starter Thread starter Doug Bell
  • Start date Start date
D

Doug Bell

Hi,
Is the only way to have a DataGrid (bound to a DataTable) disallow new
records to bind it to a DataView with its AllowNew property set to False?

Thanks

Doug
 
Yes, you have to use a DataView.

dim D as new DataView
D.Table = Table1
D.AllowNew = False
DataGrid1.DataSource = D

Have Fun
Chris
 
Chris,
Thanks, I couldn't see any other way, not that a dv is a problem but thought
that I would ask.

Doug
 
Hi,

Datatable.DefaultView.AllowNew=false

Ken
--------------------------
Hi,
Is the only way to have a DataGrid (bound to a DataTable) disallow new
records to bind it to a DataView with its AllowNew property set to False?

Thanks

Doug
 

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

Back
Top