DataGrid AllowNew = False

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
 
C

Chris, Master of All Things Insignificant

Yes, you have to use a DataView.

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

Have Fun
Chris
 
D

Doug Bell

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

Doug
 
K

Ken Tucker [MVP]

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

Top