Datagrid sorting

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

    #1

    Datagrid sorting

    Two Questions....

    1. On the DataGrid, if you click on the column titles it will sort the data
    on that column and put a little "arrow" to indicate that the grid is sorted
    on that column. When I populate the grid, as the data it is already in a
    pre-sorted order, can a do something to set the indicator to show this.

    2. Is there a way of sorting the grid on multiple columns (and showing the
    little arrows)

    Thanks
    C:>


  • William Ryan eMVP

    #2
    Re: Datagrid sorting

    Not sure about the first one - you can bind the grid to a DataView and set
    the sort order for multiple columns via it's .Sort property.

    --

    W.G. Ryan, eMVP

    Have an opinion on the effectiveness of Microsoft Embedded newsgroups?
    Let Microsoft know!

    "Chris H." <spam@someone.e lse> wrote in message
    news:cd3plf$qvn $1$830fa79d@new s.demon.co.uk.. .[color=blue]
    > Two Questions....
    >
    > 1. On the DataGrid, if you click on the column titles it will sort the[/color]
    data[color=blue]
    > on that column and put a little "arrow" to indicate that the grid is[/color]
    sorted[color=blue]
    > on that column. When I populate the grid, as the data it is already in a
    > pre-sorted order, can a do something to set the indicator to show this.
    >
    > 2. Is there a way of sorting the grid on multiple columns (and showing the
    > little arrows)
    >
    > Thanks
    > C:>
    >
    >[/color]


    Comment

    Working...