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