0

how can dataset filtering be done?

saurabh
  • 271
  • 1
  • 6
  • 18
  • 1
    could you be a bit more specific? what does your database model look like, how are you populating the dataset? what do you want to filter? – Zahir J May 15 '09 at 09:37
  • i just want to filter the results contained in dataset.... dataset contain various fields from which i have to filter the results for specific value of columns....... – saurabh May 15 '09 at 09:40

1 Answers1

1

If you're talking filtering dataset table rows:

myDataSet.DefaultViewManager.DataViewSettings["myTableName"].RowFilter = "ID = 3";
Rostyslav Dzinko
  • 39,424
  • 5
  • 49
  • 62
Seba Illingworth
  • 5,672
  • 3
  • 27
  • 25