Adjust Grid to content

3 posts, 1 answers
  1. Brygom
    Brygom avatar
    15 posts
    Member since:
    May 2009

    Posted 21 Jul 2009 Link to this post

    Hi! I have a problem. I'm using the RadGrid Control with Auto-Generate Columns at runtime, but i need adjust the every column to width the field ,How can I adjust the columns automatically?
    Thanks for your help!

    Bryan..



  2. Answer
    Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 21 Jul 2009 Link to this post

    Hello Bryan,

    Try setting the TableLayout property property of the GridTableView object to Auto and see if it helps in your case.
    aspx:
    <telerik:RadGrid ID="RadGrid1" DataSourceID="Sqldatasource1" 
                    runat="server"
                    <MasterTableView TableLayout="Auto">                  

    Thanks
    Princy.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Brygom
    Brygom avatar
    15 posts
    Member since:
    May 2009

    Posted 22 Jul 2009 Link to this post

    Thank your for the reply! it's nice....

    Bryan..

Back to Top