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