ColumnWidth star for only some columns

3 posts, 0 answers
  1. Hennie
    Hennie avatar
    3 posts
    Member since:
    Jul 2011

    Posted 03 May 2012 Link to this post

    How do I set only one or some columns to be star sized?
    Typically I'd do it only for the last column, but sometimes there would be multiple columns and I would like to for example specify a star ratio (e.g.3* or 2*) to some of the columns.

    Setting GridView.ColumnWidth = "*" doesn't help because it star sizes ALL the columns.

    Please help,
    Jaans
  2. Vera
    Admin
    Vera avatar
    265 posts

    Posted 03 May 2012 Link to this post

    Hello Hennie,

     

    Please take a look at this help article for a reference. You can use GridViewDataColumn Width property in order to set different width of the columns.

    Regards,
    Vera
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. Hennie
    Hennie avatar
    3 posts
    Member since:
    Jul 2011

    Posted 03 May 2012 Link to this post

    Hi Vera

    I didn't realise I can set the individual column width = "*" - for some reason the edit gave me a red underline before, but now it doesn't.

    Thanks for your help,
    Jaans
Back to Top