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

Can a DataView be used without binding it to a DataSource

P: n/a
Can a DataView be used directly without binding it to another control, such
as a DataGrid. I would like to use RowFilter on a DataSet table and extract
values from specific columns in rows returned by the filter.

Is this possible?
Nov 15 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a

"Top Gun" <nf*@nospam.com> wrote in message
news:OX****************@TK2MSFTNGP12.phx.gbl...
Can a DataView be used directly without binding it to another control, such as a DataGrid. I would like to use RowFilter on a DataSet table and extract values from specific columns in rows returned by the filter.

Is this possible?


Yes, A dataview, dataset and datatable exist totally independent of any
control. The fact that you can bind controls to them have to do with the
fact that they implement IList, butjust b/c you can bind them doesn't mean
there's any necessity to do so.
Nov 15 '05 #2

P: n/a
Yes,

DataView dv = {whatever to create view...}

dv.Count --> returns num rows in view.
dv[0] --> returns a view to row 0
dv[0][1] --> returns column 1 in row 0

--Richard

-----Original Message-----
Can a DataView be used directly without binding it to another control, suchas a DataGrid. I would like to use RowFilter on a DataSet table and extractvalues from specific columns in rows returned by the filter.
Is this possible?
.

Nov 15 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.