Disable '* Row' in a DataGrid

thomas10001

Regular
Joined
Jun 22, 2003
Messages
57
Location
Samoa & Sweden
Hi

I have a DataGrid with a DataSet as the DataSource.

But I want to hide :cool: or supress the * row.

There is a property allowNew but it seems that it is only available if the DataSource is a DataView. Is there a way to hide/supress the * row when having a DataSet as DataSource?

Thomas
 
No Just add code similar to the following when you are settion up the tablestyle and away you go...

Dim cm As CurrencyManager = BindingContext(dgrid.DataSource, dgrid.DataMember)
Dim dv As DataView = cm.List
dv.AllowNew = False
 
Back
Top