AD
Administrator
Syncfusion Team
September 21, 2004 12:19 AM UTC
Hi Jeck,
I think the following code should do it:
GridBoundRecordState state = binder.GetRecordStateAtRowIndex(e.RowIndex);
GridHierarchyLevel level = binder.GetHierarchyLevel(state.LevelIndex);
fieldNum = level.RowFieldToField(state.row, fieldNum);
GridBoundColumnsCollection columns = level.InternalColumns;
if (fieldNum >= 0 && fieldNum < columns.Count)
{
GridBoundColumn columnStyle = columns[fieldNum];
}
Stefan
AD
Administrator
Syncfusion Team
September 21, 2004 05:18 PM UTC
Thanks! Works great!
I think this is a nice topic for Knowledge Base. Few other people at our company were puzzled too.
>Hi Jeck,
>
>I think the following code should do it:
>
>
>GridBoundRecordState state = binder.GetRecordStateAtRowIndex(e.RowIndex);
>GridHierarchyLevel level = binder.GetHierarchyLevel(state.LevelIndex);
>fieldNum = level.RowFieldToField(state.row, fieldNum);
>GridBoundColumnsCollection columns = level.InternalColumns;
>if (fieldNum >= 0 && fieldNum < columns.Count)
>{
> GridBoundColumn columnStyle = columns[fieldNum];
>}
>
>
>Stefan
>
>