Is there any way to determine if the ExpansionIndicator column is visible? I’ve got a grid which may or may not contain data that triggers the Expansion Indicator to be displayed. In addition to this, is there any way to get the width of the ExpansionIndicator if it’s visible?
Thanks
Dan
Thanks that works!
Hi primts,
I'm not sure what exactly style you've used, but the expansion indicator placement is controled by the ExpansionIndicatorDisplayMode property of FieldLayoutSettings. If you set it to "Never" the expansion indicator will be never shown, and that first column would be narrower - it will just be wide enough to accomodate the record selector. In case you don't want it either, you may use the RecordSelectorLocation property of FieldLayoutSettings. By setting RecordSelectorLocation="None" you will hide that first column.
Hope this helps.
Hi i already disabled the ExpansionIndicator with a Style, but how to Remove/Hide the first Field/Column where the ExpansionIndicator is placed ??
Alex,
Thanks for the quick answer.
Hello Dan,
The ExpansionIndicator mode is controlled from the ExpansionIndicatorDisplayMode property of the FieldLayoutSettings. There is not direct way of getting the width of the ExpansionIndicator, however, from its default template it is 9 pixels wide with 5 left and 3 right pixels margins - approximately 17 pixels wide.