Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
21443 | Nov 10,2004 02:43 PM UTC | Nov 10,2004 08:00 PM UTC | WinForms | 4 |
![]() |
Tags: Grouping |
GridTableCellStyleInfo style = e.TableControl.Model[e.Inner.RowIndex, e.Inner.ColIndex];
GridTableCellStyleInfoIdentity id = style.TableCellIdentity;
GridColumnDescriptor column = id.Column;
Stefan
public GridColumnDescriptor GetHeaderColumnDescriptorAt(int colIndex)
{
GridColumnDescriptor[,] recordRowColumns = TableDescriptor.RecordRowColumns;
int fieldNum = TableDescriptor.ColIndexToField(colIndex);
return recordRowColumns[0, fieldNum];
}
Use it this way:
GridColumnDescriptor column =
e.TableCellIdentity.Table.TableDescriptor.GetHeaderColumnDescriptorAt(e.TableCellIdentity.ColIndex)
Stefan
GridTable table = style.TableCellIdentity.Table;
GridColumnDescriptor column = table.GetHeaderColumnDescriptorAt(style.TableCellIdentity.ColIndex);
It is a member of GridTable.
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.