in

C1 Community

ComponentOne Community is a free source for developers and help authors to collaborate and communicate.

How to set columns's width in a Grid with Scrolbars

Last post 12-13-2007 1:23 PM by C1_GregL. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 12-13-2007 11:48 AM

    How to set columns's width in a Grid with Scrolbars

    I create a grid with scrolbars. The grid datasource is ObjectDataSource. If the grid has 5 columns, is it possible to set these columns with different width size?  

    Filed under:
  • 12-13-2007 1:23 PM In reply to

    • C1_GregL
    • Top 10 Contributor
    • Joined on 06-11-2007
    • Pittsburgh PA
    • Posts 498

    Re: How to set columns's width in a Grid with Scrolbars

    Yes, in the designer under the Format tab of the Property builder you can set each column's width

    or in code

    C1WebGrid1.Columns(1).ItemStyle.Width = 300

    regards,
    Greg L

    Filed under: ,
Page 1 of 1 (2 items)
Contact ComponentOne: 1.800.858.2739 ©1987-2008 ComponentOne LLC All Rights Reserved.