DataGrid: Master-Detail

  • Thread starter Thread starter LrKr
  • Start date Start date
L

LrKr

Hi,

Just one question that has been bothering me for awhile.

Let me set the scene. I have a dataset that has two tables and a
relationship between them. It's easy to create a master-detail datagrid
pair.

The question is: How does one sort the results of the datagrids AND maintain
the relationship?

TIA
John
 
Hi John,

From memory, the DataViewManager.DataViewSettings[Table.TableName].Sort
should do the trick. You can set the default sort order there.

Regards,
Matt
(e-mail address removed)
 
Back
Top