Filtering the Detail Datagrid in a Master Detail Relationship

G

Guest

Can anyone give an example of how to filter the detail datagrid that is
databound in a master detail relationship.

I need to display only a subset of the detail records.

Thanks
 
C

Cowboy \(Gregory A. Beamer\)

1.x Framework, I assume (rather than Whidbey):
Underneath the hood, you always have a DataView when you bind to a grid. If
you do not specify explicitly, the "DefaultView" for the table in question
(1st table in a DataSet if none is explicitly set) is used. To easily take
control, you can create a DataSet with two tables (summary and detail) and
use a filter on an explicitly created DataView that works on the key value
in question.

Hope this makes sense.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************************************************
Think outside the box!
*************************************************
 

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