C
cmrchs
Hi,
I have a table "Colors" in a DataSet with following records :
ID Color
---------
2 Red
7 Green
8 Blue
Then sorting the table using a DataView do the records show as follows :
ID Color
---------
8 Blue
7 Green
2 Red
Now, when I select the last row in the dataView (2, Red) do I want to retrieve the position of that record in the original dataSet, hence rowindex 0 (since it is the first row in the dataSet)
I started with (but don't know how to continue) :
DataView dv = m_dataSet.Tables[0].DefaultView;
??? = dv.Table.Rows[itemClicked] ???
any ideas very welcome
Thanks
Chris
**********************************************************************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...
I have a table "Colors" in a DataSet with following records :
ID Color
---------
2 Red
7 Green
8 Blue
Then sorting the table using a DataView do the records show as follows :
ID Color
---------
8 Blue
7 Green
2 Red
Now, when I select the last row in the dataView (2, Red) do I want to retrieve the position of that record in the original dataSet, hence rowindex 0 (since it is the first row in the dataSet)
I started with (but don't know how to continue) :
DataView dv = m_dataSet.Tables[0].DefaultView;
??? = dv.Table.Rows[itemClicked] ???
any ideas very welcome
Thanks
Chris
**********************************************************************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...