Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
16364 | Jul 13,2004 07:28 PM UTC | Jul 13,2004 08:21 PM UTC | WinForms | 1 |
![]() |
Tags: Grouping |
private void gridGroupingControl1_QueryCellStyleInfo(object sender, Syncfusion.Windows.Forms.Grid.Grouping.GridTableCellStyleInfoEventArgs e)
{
if ( e.TableCellIdentity.TableCellType == GridTableCellType.AlternateRecordFieldCell || e.TableCellIdentity.TableCellType == GridTableCellType.RecordFieldCell )
{
Table table = e.TableCellIdentity.DisplayElement.ParentTable;
// Get record in table
Record record = e.TableCellIdentity.DisplayElement.ParentRecord;
int recordInTableIndex = table.Records.IndexOf(record);
// - or in group -
Group group = e.TableCellIdentity.DisplayElement.ParentGroup;
int recordInGroupIndex = group.Records.IndexOf(record);
}
}
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.