Hi,
I am having this extra space in UltraWinGrid (snapshot attached). How can I remove it?
Regards,
Nitin Jain
Hello Nitin,
If I have to guess, I would say that you have some child records, with a lot more columns than in the parent band. If you expand on of your parent records, the above could happen.
Please feel free to let me know if I misunderstood you or if you have any other questions.
Hi Boris,
Sorry for not to be very clear in screenshot. There may be some child bands, but for this grid we are not showing them.
PS: In our application, this is the derived class for the grid. So, that is why there may or may not be child bands in base class, but in this class we are not showing any of the child bands.
So, even if there are any child bands, they are being hidden always.
Please let me know if the hidden child bands impacting this. If yes, then what could I do to come up from this issue.
Also, if there are any child bands, then by default these are being collapsed.
Hi Mike,
I checked the code and didn't find any reset or loading of layout. I will try different options and will post the reason if I find.
Thanks for all the help.
Hi Nitin,
As a test, try putting a button on the form and in the click event of the button, check the property settings to make sure they are still set to what you set them to. If not, then something is overwriting them. If so, then you know the problem is something else.
Thanks Mike for the good suggestion.
Can you please also suggest all the properties that I should look for this issue?
I checked with the option you suggested and found that the MaxBandDepth property is 3 and not being overridden at any place. Still I can't see the extra space after the last column.
Thanks,
Nitin Jain said:Still I can't see the extra space after the last column.
Is that a typo? You mean you can still see the extra space, right?
I'm afraid I don't know what's happening here, then. The only other thing I can think of is that the setting the MaxBandDepth is occurring too late or too early and so it's not taking effect.
Is there any way you could post a small sample project demonstrating the issue? I'm sure if I can reproduce the issue here I could figure out why it's not working.
Yes, that was a typo. I can still see the extra space.
I am very sorry that I cannot provide client code as it is on client machine. Also, if I would be able to replicate the same in sample project then I could solve the issue probably :)
I will rethink on all the options I can get from the earlier posts like "setting MaxBandDepth is occurring too late or too early" and get back to you if find the issue.