How do I load a grid from a dataset with a new query!

N

newsaboutgod

I am loading a dataset from a XML file.

I want to allow the user to display data from the dataset in a grid.

Depending on which button they click i want to load the grid with a
subset of data from the dataset.

So, once I load the dataset from the XML file, how would I load the
grid with only the data from the dataset that had "smith" in the last
name?

I thought a dataset was like a relational database but i am not sure
how to load the grid from the dataset by applying a "select * from
dataset where ln = 'smith'"

Any help would be great!!

Sheila
 
K

Kerry Moorman

Sheila,

Assuming that when you use the term dataset you really mean a datatable
within the dataset, look up the datatable's DefaultView property in the
online help.

Kerry Moorman
 

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