DataGrid: Master-Detail

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
 
M

Matt Garven

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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top