Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
25803 | Mar 8,2005 08:53 AM UTC | Mar 8,2005 01:14 PM UTC | WinForms | 3 |
![]() |
Tags: GridControl |
GridTableCellStyleInfo style = gridGroupingControl.TableControl.Model[row, col];
//get some record data
GridRecordRow grr = style.TableCellIdentity.Table.DisplayElements[row] as GridRecordRow;
DataRowView drv = grr.GetData() as DataRowView;
SInce a GridControl does not have a DataSource, I am not sure how any datarow is being mapped into the GridControl. If you are using a virtual grid and displaying data through the DataTable.DefaultView, then you can get the data through the DataView (or through the CurrencyManager). Maybe like this:
DataRowView drv = dataView1[row-1];
where dataView1 is the dataview you are using to provide the sorted data. 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.