We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Master-detail problem in datagrid

I have a dataset that is the datasource of a datagrid. The dataset has two related datatables. The problem is that even if the detail-table doesn´t have any related records I still get a relationlink in the datagrid. When I click the link one record is shown with the id that is used for the relation and null in the rest of the detail-columns. Obviously I only want the relationslink to be clickable if there is corresponding records. How do I solve this??? Thanks! /Therese

1 Reply

AS Ashish September 15, 2003 11:19 PM

During Runtime(ie. In navigation event)check the datamember property of the grid and make the grid or the gridstryle readonly.

Loader.
Live Chat Icon For mobile
Up arrow icon