Hi,
I create a WinGrid with the following properties:
- DisplayLayout.ViewStyle = ViewStyle.SingleBand;
- DisplayLayout.MaxBandDepth = 1;
It doesn't matter if I do this at design time, run time, before/after setting the DataSource.
The MultiBand + sign is always present before each row.
I am using V12.2.
In older versions I never saw this problem.
Do I have to change other properties?
Thanks and kind regards,
Luc Verstreken
Hi Luc,
Setting the ViewStyle to SingleBand should be enough. My guess is that something is blowing away this setting after you set the property. Just as a test, try putting a button on the form and in the click event, display the ViewStyle and MaxBandDepth at run-time and see if they are still set to what you think they are set to.
If they are not, then something in your code is changing them. My guess is that you are loading a Layout into the grid and this is setting one of both of these properties.