Datasets select

ringworm

New member
Joined
Oct 20, 2009
Messages
4
Programming Experience
Beginner
Hi, I have populated a dataset from a text file and I can display it in a dataview, Can I and if so how do I, select a sub set from this dataset and display it in the dataview? Many thanks
 
Did you mean you displayed it in a DataGridView?

According to MSDN, a dataview "Represents a databindable, customized view of a DataTable for sorting, filtering, searching, editing, and navigation."

So to display a subset from the DataTable (located in the DataSet), you can bind the DataGridView to a DataView and set the DataView's RowFilter property.

Remember that the DataSet contains the DataTable(s) and the DataTable contains the data.
 
Back
Top