RobEmDee Posted July 14, 2004 Posted July 14, 2004 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? Quote
Administrators PlausiblyDamp Posted July 14, 2004 Administrators Posted July 14, 2004 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. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.