Hello,
Sorry but I'm a bit lost here. Can someone please provide all the code required to do this? For example, I don't understand specifically the following:
1) Am I supposed to declare and code the class GridTableControlDrawCellDisplayTextEventArgs?
2) What is e.Inner.DisplayText? Like what does Inner mean?
3) What if I want to use the actual value in the cells of a specific column of a table instead of the table's name? What should I use?style.TableCellIdentity.Table.TableDescriptor.Column1.Cell.Value????
>Property-wise, you set these properties to control what is shown in the CaptionText.
>
>this.gridGroupingControl1.TopLevelGroupOptions.CaptionText = "x";
>this.gridGroupingControl1.NestedTableGroupOptions.CaptionText = "x";
>
>
>This gives you a chance to specify the caption content through a string containing specific tokens.
>
>If you cannot show what you want using this tokenized string property, then you can handle the TableControlDrawCellDisplayText event and there dynamically swap out some marker you put into th CaptionText property (or do whatever you need to do to display what you want).
>
>private void gridGroupingControl1_TableControlDrawCellDisplayText(object sender, GridTableControlDrawCellDisplayTextEventArgs e)
>{
> if(e.Inner.DisplayText == "x")
> {
> GridTableCellStyleInfo style = e.Inner.Style as GridTableCellStyleInfo;
> e.Inner.DisplayText = style.TableCellIdentity.Table.TableDescriptor.Name;;
> }
>}
>