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: 4264539"] Hi TheMan, Thanks for your input. Yes, if the binded data(dataview) is sorted, the e.Item.ItemIndex has no effect on the underlying datasource. It is only used to retrieve value from the DataGrid's DateGridItem's Cell. In addition, as for the GUID string you mentioned, the DateTable.Select method doesn't support Guid column's comparasion. However, we can use the Guid class's constructor to reconstruct the GUID from string . Then, use the DataTable.Rows.Find method to search DataRow. The Find method can accept an object or object[] paramter which should be the PK of the datatable. HTH. Thanks, 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