Advanced DataSet filtering question

  • Thread starter Mervin Williams
  • Start date
M

Mervin Williams

I have a dataset that includes data adapters for two tables, Company and
User, and one for the intersection table, Company_User. I've set up
DataRelations between the tables within the dataset .xsd file.

How do I now apply a filter that restricts the Company to only display those
records accessible by a specific, as indicated in the Company_User table?

Can the DataRelation not be used to restrict the rows received in both the
parent and child tables?

All help will be greatly appreciated.

Mervin Williams
 
A

Alvin Bruney [MVP]

one approach is to simply set the filter on a per table basis. So for
example, if you need to show only rows for company xyz, then you apply a
filter on the datatable to filter companies not belonging to xyz. This
disadvantage of this technique is that you would need to manually add the
filtering and be responsible for keeping it up to date assuming it changes,
the good thing is that it is quick and painless if time is a factor
 

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