Skip to content

Import XML into a Dataset and then query it

Colin Adan

Asked Jul 6, 2006, 1:06 AM EDT1 answer
Share
LinkedInX
Hi

I hope I'm in the right section for this post.

Basically, I am importing some xml (using ReadXML and C#) into a Dataset. I can filter the dataset but can only manage to display my results in a textbox.

Is there a way to query/filter the dataset and display the results of that filter in a second dataset?

Many thanks for your help
Col

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0
    Hi

    No problem I have solved it.

    For anyone else interested, I first check to see if the filter returned any records. If it did, I merely set the second datagrid to display these records as such

    DataGridView2.DataSource = ds.Tables["Connection"].DefaultView

    Cheers
    Col
    0