How to define COlumn Width ????

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

    #1

    How to define COlumn Width ????

    Dear all,

    I have a Datagrid control which bind to a dataset during runtime.
    How can I set the width of the Column of the grid dynamically .

    I could not find any width property for columns

    Thnaks for your help

    regards
    serge
  • Chris Mayers

    #2
    Re: How to define COlumn Width ????

    Have a look at TableStyles, GridColumnStyle s and (for example)
    DataGridTextBox Column

    You need to declare a TableStyle for your grid which contains your column
    widths...

    Chris.

    "serge calderara" <sergecalderara @discussions.mi crosoft.com> wrote in
    message news:2C6AF41B-0814-46AA-95CD-E5E7AC4BBA49@mi crosoft.com...[color=blue]
    > Dear all,
    >
    > I have a Datagrid control which bind to a dataset during runtime.
    > How can I set the width of the Column of the grid dynamically .
    >
    > I could not find any width property for columns
    >
    > Thnaks for your help
    >
    > regards
    > serge[/color]


    Comment

    Working...