K
Kyle Klaus
Alright, I'm going to attribute this problem to my lack of knowledge on the
subject, and that I can't find any good resources describing it.
What I have is an application that is used to view the contents of a single
table/query, who's contents I want filtered to show only the values with a
certian string in a given column. The table/query can be very large, and it
may take a bit to read and get to the user, so I don't want to re-read the
entire database everytime I change what my filter value is.
I thought the fastest/easiest way to do this would be to grab all the data
right off the bat, put it in a dataset, and then use dataview's to filter
what I wanted to see and display that. but I can't figure out the dataview.
I can populate the dataset and then create the dataview, and properties like
this:
Dim tmp_dataview As DataView = New DataView(priv_dataset.Tables(0))
tmp_dataview.RowFilter = "Project='" & Me.ComboBox1.SelectedItem & "'"
But once I get here... I am not sure what I can do with the dataview, or how
to access it. Idealy I would like to get to the collection of rows that fit
the RowFilter criteria.
Any help is greatly appreciated.
..: Kyle
P.S. Would a Stored Procedure work better for this?
subject, and that I can't find any good resources describing it.
What I have is an application that is used to view the contents of a single
table/query, who's contents I want filtered to show only the values with a
certian string in a given column. The table/query can be very large, and it
may take a bit to read and get to the user, so I don't want to re-read the
entire database everytime I change what my filter value is.
I thought the fastest/easiest way to do this would be to grab all the data
right off the bat, put it in a dataset, and then use dataview's to filter
what I wanted to see and display that. but I can't figure out the dataview.
I can populate the dataset and then create the dataview, and properties like
this:
Dim tmp_dataview As DataView = New DataView(priv_dataset.Tables(0))
tmp_dataview.RowFilter = "Project='" & Me.ComboBox1.SelectedItem & "'"
But once I get here... I am not sure what I can do with the dataview, or how
to access it. Idealy I would like to get to the collection of rows that fit
the RowFilter criteria.
Any help is greatly appreciated.
..: Kyle
P.S. Would a Stored Procedure work better for this?