By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,743 Members | 1,072 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,743 IT Pros & Developers. It's quick & easy.

how to filter data in dataset?

P: 19
how to filter data in dataset?
suppose i want filter the data in dataset with perticuler city..
Apr 2 '07 #1
Share this Question
Share on Google+
1 Reply


dip_developer
Expert 100+
P: 648
how to filter data in dataset?
suppose i want filter the data in dataset with perticuler city..
suppose ds is the name of your DataSet and Customers is the name of the DataSet Table...then following is the code to filter ur Dataset

Expand|Select|Wrap|Line Numbers
  1. Dim myView as DataView
  2. myView = ds.Tables("Customers").DefaultView
  3. myView.Filter="City='NewYork'"
hope it will work..................
Apr 2 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.