Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

Posted

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

Hamlet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...