setting datagrid column width?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Lance

    setting datagrid column width?

    Hi,

    I would like to set column widths in my datagrid at run time. I tried
    DataGrid1.Colum ns(i).Width = xxx but it had no effect.

    I also looked at the design time properties page but was only able to set
    properties for columns 0 and 1.

    Any suggestions will be greatly appreciated.

    Thanks,
    Lance


  • Raoul Watson

    #2
    Re: setting datagrid column width?


    "Lance" <Lbrannma@yahoo .com> wrote in message
    news:d7_oe.1396 39$dP1.490424@n ewsc.telia.net. ..[color=blue]
    > Hi,
    >
    > I would like to set column widths in my datagrid at run time. I tried
    > DataGrid1.Colum ns(i).Width = xxx but it had no effect.
    >
    > I also looked at the design time properties page but was only able to set
    > properties for columns 0 and 1.
    >
    > Any suggestions will be greatly appreciated.
    >
    > Thanks,
    > Lance
    >[/color]

    The changes may not be noticeable if you use small numbers, try a big number
    and work with 200 to 300 increments.

    DataGrid.Column s(x).Caption = "Test Header"
    DataGrid.Column s(x).Width = 1200


    Comment

    Working...