Thanks. I forgot entirely about integer indexes.
I appreciate your comments about the difference between the two platforms.
What I have found so far for HTML tables with ASP.NET they are "simply"
grids with one row representing one row of data albeit with ability to have
hyperlinks, formatting, etc.. My HTML tables may have several display lines
("rows") for just one row of data, that flex to two or three columns per
page of "rows" that are several display lines, all sorted by groups. I just
have not seen anything created with ASP.NET that comes even close.
I would love to see examples of how to do similar things with .NET
(something like below). Thanks again
(Typical .NET GridView)
Column 1 Header Column 2 Header Column 3
Row1Column1Data Row1Column2Data Row1Column3Data
Row2Column1Data Row2Column2Data Row2Column3Data
Row3Column1Data Row3Column2Data Row3Column3Data
(what I need)
Custom Header1 Custom Header3
Row1Column1Data Row3Column1Data
Row1Column2Data Row3Column2Data
Row1Column3Data Row3Column2Data
Custom Header2
Row2Column1Data
Row2Column2Data
Row2Column3Data
Eliyahu Goldin said:
To answer your question, a Dataset contains a collection of DataTables. A
DataTable contains a collection of Rows. You can use just an integer index
to navigate through it.
Generally speaking, asp.net is object-oriented, not procedure-oriented.
Several server controls, such as repeater, datalist and gridview, can
produces a databound html table with item (row) structure of any
complexity. Trying using asp.net in the classic asp way won't be
productive and will be always annoying you. Something like driving an
airplane instead of flying it.
--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
Don Miller said:
In my migration from ASP to ASP.NET 2.0, I have a fair number of
complicated HTML tables that defy anything .NET can do. Using classic ASP
I created these tables (by string concatenation) by moving forward, and
at times, backward through a recordset (using a static cursor rather than
a forward-only cursor).
I can't seem to find any methods in .NET to move to a previous row in a
Dataset (e.g. MovePrev, MoveFirst). Am I trying to use the wrong object
to navigate through rows of data returned from a database query? Is there
a better way?
Thanks for any direction.