AutoSize columns in Fill mode with a fill weight

2 posts, 1 answers
  1. Jaap
    Jaap avatar
    96 posts
    Member since:
    Oct 2012

    Posted 03 Jul 2013 Link to this post

    Is there a way to achieve the following:
    I want to have a grid with AutoSizeColumnsMode set to Fill, but I want for example one column twice the width of the others.
    E.g. I have 2 column. The first should take 1/3 of the space, the second 2/3.
  2. Answer
    Dimitar
    Admin
    Dimitar avatar
    1415 posts

    Posted 05 Jul 2013 Link to this post

    Hi Jaap,

    Thank you for writing.

    The AutoSizeColumnsMode functionality will calculate the sizes of the columns as proportion of their Widths i.e. if in a grid with two columns we set the following values:
    radGridView1.Columns[0].Width = 10;
    radGridView1.Columns[1].Width = 20;

    the first column will take 1/3 of the grid size and the second will take the remaining 2/3.

    I hope this will be useful. Should you have further questions, I would be glad to help.

      
    Regards,
    Dimitar
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top