Jump to content
Xtreme .Net Talk

Recommended Posts

Posted
I have two DataGrids on a form set up in a Master-Detail sstrucuture using a DataRelation from a DataSet: Master DataGrid bound to Parent DataTable and Details DataGrid bound to DataRelation between Parent/Child DataTables. The filtering works perfectly. My problem is that I would like for the Details DataGrid to not display the '*' row at the bottom made available for adding data. I can't seem to figure out how to do this when the DataGrid is bound to a DataRelation....any insights?
  • Administrators
Posted

Rather than bind to the DataTable create a Dataview of the DataTable and bind to that - one of the properties of a data view allows you to specify if you can create new records (I think it is called AllowNew).

If you disallow new records then you shouldn't see the extra row.

Posting Guidelines FAQ Post Formatting

 

Intellectuals solve problems; geniuses prevent them.

-- Albert Einstein

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...