Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
ASP .Net
ASP .Net Datagrid Control
e.Item.ItemIndex and e.Item.DataSetIndex
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Steven Cheng[MSFT], post: 4262971"] Hi Scott, Thanks for the followup. As for the DataSetIndex, I'm afraid it can only reference to the directly binded datasource(DataView) rather than the DataSet(DataTable). In fact, when do sorting, a new DataView(sorted) is generated from the DataTable(in DataSet) and then they have no relation(index reference with each other 's record). And if we do need to reference the raw index in the DataTable, I think we may need to add an additional column in the DataTable(which contains the index value of each row in the DataTable). Also, this columns' value need to be bind onto the DataGrid, when we need to reference the record's index in DataTable(DataSet) , we read the certain binded value in the DataGrid. I think it'll improve the speed but cost more space(both memory and the page's viewstate). Just some of my thought, if you have any other ideas , please feel free to post here. Thanks. Regards, Steven Cheng Microsoft Online Support Get Secure! [URL="http://www.microsoft.com/security"]www.microsoft.com/security[/URL] (This posting is provided "AS IS", with no warranties, and confers no rights.) [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
ASP .Net
ASP .Net Datagrid Control
e.Item.ItemIndex and e.Item.DataSetIndex
Top