How can i resize a control at runtime with C1FlexGridClassic inside it

Posted by: nadavshlezz on 25 March 2018, 8:57 am EST

    • Post Options:
    • Link

    Posted 25 March 2018, 8:57 am EST

    hello everyone

    im creating a Control x and then i add C1FlexGridClassic into it:

    x.Controls.Add(myflex);

    and then when i want to show the control by:

    myflex.Show();

    a window opens with the grid, and i cant resize the window

    please if someone can help me with it.

    thanks!

  • Posted 26 March 2018, 2:08 am EST

    Hello!

    You can resize the displayed grid through code, using its Width and Height properties.

    myflex.Show();
    myflex.Height = *NewHeight*;
    myflex.Width = *NewWidth*;
    

    Best regards,

    Meenakshi

  • Posted 26 March 2018, 2:45 am EST

    hi Meenakshi !

    thank you for the answer, but how can i do it on runtime, i mean to resize the window by stretching it?? (the grid is inside the control)

  • Posted 27 March 2018, 1:52 am EST

    Hi Nadav!

    The grid can be resized in this manner only at design-time, but not at run-time. At run-time, resizing can be done through code only.

    Best regards,

    Meenakshi

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels