Referencing Typed DataSet DataRows in .NET 2.0

G

gauty

In .NET 1.x, you referenced a strongly typed row in a typed dataset by
such VB code as:

drForum = dsForum.Forum(0) 'Get row 0 in the typed dataset
ds

or

drForum = dsForum.Forum.Rows(0)

and then you could reference the columns in the row by code such as

drForum.AuthorName

Things seem to have changed in .NET 2.0 (which I'm fairly new to) and
I can't for the life of me figure out how to do the same thing! I know
the answer will be pathetically easy, but having serached around all
over the place, all I can find is references to filling typed datasets
by using adapters, which all seems over complicated for what I want to
do.

Any help greatly appreciated!
 
C

Cor Ligthert [MVP]

Gauty,

I had that idea for a moment as well, but it is not, what can is that you
can use now tableadapters, which are in fact a kind of strongly typed
dataadapters, which residence as well in a dataset.

Cor
 
R

RobinS

In VS2005, you set up a Strongly Typed Dataset using the DataSet Designer.
It generates the code-behind that you're using for dsForum, etc., that you
can use. It also creates a table adapter that you can use for doing
updates.

Robin S.
Ts'i mahnu uterna ot twan ot geifur hingts uto.
 

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

Top