Data Grid Columns

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

    #1

    Data Grid Columns

    Hello, everyone!

    I was wondering about data grids the other day, and I've got a question
    about it......

    Can you hide columns in your datagrid even if the datagrid is binded?


    Thanks!


    Ann


  • Michael Mayer

    #2
    Re: Data Grid Columns

    The best way (only way I know) is to first create a DataGridTableSt yle and
    then create DataGridColumnS tyle objects for each of the columns you want
    visible. Add each DataGridColumnS tyle to the DataGridTableSt yle and finally
    add the DataGridTableSt yle to the DataGrid.

    See MSDN documentation for those two classes for more details.

    --
    Mike Mayer

    mrmayer@charter .net


    "Ann Marinas" <ann_marinas@xt ra.co.nz> wrote in message
    news:O9GURLrZDH A.2284@TK2MSFTN GP10.phx.gbl...[color=blue]
    > Hello, everyone!
    >
    > I was wondering about data grids the other day, and I've got a question
    > about it......
    >
    > Can you hide columns in your datagrid even if the datagrid is binded?
    >
    >
    > Thanks!
    >
    >
    > Ann
    >
    >[/color]


    Comment

    Working...