Can I access rows & cols with a data source

A

Ant

Hi,
I'm new to ASP & the new ADO data model so please excuse the ignorance.

I have created a data source by simply dragging a table onto the design view.
Can I now pragmatically access columns & rows of that table via the data
source or must I transfer the data into another object (table, view etc)?

Many thanks for any help here
Ant
 
M

Mike

Ant said:
Hi,
I'm new to ASP & the new ADO data model so please excuse the ignorance.

I have created a data source by simply dragging a table onto the design
view.
Can I now pragmatically access columns & rows of that table via the data
source or must I transfer the data into another object (table, view etc)?

Many thanks for any help here
Ant

This depends on the mode of the datasource control. Its default setting is
DataSet, which returns a DataView object. The alternative, DataReader,
returns a DataReader object. Both are accessible by calling the datasource
control's Delect method:
http://www.mikesdotnetting.com/Article.aspx?ArticleID=45

Mike
 

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

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,053
Latest member
BrodieSola

Latest Threads

Top