Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
13112 | Apr 20,2004 05:07 PM UTC | Apr 21,2004 01:24 PM UTC | WinForms | 2 |
![]() |
Tags: Grouping |
Table table = e.TableControl.Table;
Element el = table.DisplayElements[e.rowIndex];
Record r = el.ParentRecord;
int dataRowPos = table.UnsortedRecords.IndexOf(r);
CustomersDataRow row = dataSoure.Rows[dataRowPos];
string id = row.CustomerId;
The main point here is that any row in the grid has 1-to-1 association with a displayelement of the engine table.
And for any record you can quickly identify its original position in the datasource with the UnsortedRecords.IndexOf method.
Stefan
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.