Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
50
UltraExpandableGroupBox - setting Height, during Expand/Collapse
posted

Hi,

I am having a UltraExpandableGroupBox and trying to resize it during Expand/Collapse using the 'ExpandedStateChanged' event. Here I need to expand the UltraExpandableGroupBox Height to "child control Height". Whenever I am doing that, I am getting more than the expected value.

private void groupBoxDetails_ExpandedStateChanged(object sender, EventArgs e)
{
if (this.groupBoxDetails.Expanded)
{
this.groupBoxDetails.Height = 26 * List<Details>.Count;
else
this.groupBoxPastApptDetails.Height = 28;
}

eg:-

List<Details>.count = 10

I need to set the groupBoxDetails Height to 260

can anyone please help me on this regard?