DataGrid, how to determine which column is being sorted on

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

    DataGrid, how to determine which column is being sorted on

    Hi,

    I've a DataGrid and a DataSet (not a DataView) as the DataSource.
    Users can click on column headers and sort the contents of the DataGrid.
    I want to know how to determine which column is being used to order the sorted data.
    I can't see in the microsoft DataGrid in vb.net the Event 'SortCommand'.
    I think that its because I'm using vb.net not asp.

    Thanks in advance.
  • Cor Ligthert

    #2
    Re: DataGrid, how to determine which column is being sorted on

    Hi Paul,

    Everything you wanted to know about the datagrid.
    Get detailed answers to common queries about Syncfusion Windows Forms components covering installation, features, licensing, and developer support.


    When it is not there it will be hard to find.

    I hope this helps?

    Cor[color=blue]
    >
    > I've a DataGrid and a DataSet (not a DataView) as the DataSource.
    > Users can click on column headers and sort the contents of the DataGrid.
    > I want to know how to determine which column is being used to order the[/color]
    sorted data.[color=blue]
    > I can't see in the microsoft DataGrid in vb.net the Event 'SortCommand'.
    > I think that its because I'm using vb.net not asp.
    >[/color]


    Comment

    • Becker

      #3
      Re: DataGrid, how to determine which column is being sorted on

      I have the same quesiton and this was the first place I looked. I see using
      the bindingmanagerb ase to do this, but I don't know where to put this. What
      event is it when the user sorts? I want this to fire automatically after
      the sort occurs, but I'm not sure where to stick the code that is on this
      link to reference that row.

      Thanks,
      Ben

      "Cor Ligthert" <notfirstname@p lanet.nl> wrote in message
      news:%23VAx3ybW EHA.3512@TK2MSF TNGP12.phx.gbl. ..[color=blue]
      > Hi Paul,
      >
      > Everything you wanted to know about the datagrid.
      > http://www.syncfusion.com/FAQ/WinForms/FAQ_c44c.asp
      >
      > When it is not there it will be hard to find.
      >
      > I hope this helps?
      >
      > Cor[color=green]
      > >
      > > I've a DataGrid and a DataSet (not a DataView) as the DataSource.
      > > Users can click on column headers and sort the contents of the DataGrid.
      > > I want to know how to determine which column is being used to order the[/color]
      > sorted data.[color=green]
      > > I can't see in the microsoft DataGrid in vb.net the Event 'SortCommand'.
      > > I think that its because I'm using vb.net not asp.
      > >[/color]
      >
      >[/color]


      Comment

      • Ken Tucker [MVP]

        #4
        Re: DataGrid, how to determine which column is being sorted on

        Hi,

        There isn't a sort event. On the mousedown event for the datagrid
        check and see if the person clicked on a columnheader.



        Ken
        ----------------------

        "Becker" <ben@benbecker. net> wrote in message
        news:#Ecj2GjWEH A.712@TK2MSFTNG P11.phx.gbl:[color=blue]
        > I have the same quesiton and this was the first place I looked. I see
        > using
        > the bindingmanagerb ase to do this, but I don't know where to put this.
        > What
        > event is it when the user sorts? I want this to fire automatically after
        >
        > the sort occurs, but I'm not sure where to stick the code that is on this
        >
        > link to reference that row.
        >
        > Thanks,
        > Ben
        >
        > "Cor Ligthert" <HYPERLINK
        > "mailto:notfirs tname@planet.nl "notfirstname@p lanet.nl> wrote in message
        > news:%23VAx3ybW EHA.3512@TK2MSF TNGP12.phx.gbl. ..
        >[color=green]
        > > Hi Paul,
        > >
        > > Everything you wanted to know about the datagrid.
        > > HYPERLINK
        > > "http://www.syncfusion. com/FAQ/WinForms/FAQ_c44c.asp"ht tp://www.syncfusion. c
        > > om/FAQ/WinForms/FAQ_c44c.asp
        > >
        > > When it is not there it will be hard to find.
        > >
        > > I hope this helps?
        > >
        > > Cor[/color]
        >[color=green][color=darkred]
        > > >
        > > > I've a DataGrid and a DataSet (not a DataView) as the DataSource.
        > > > Users can click on column headers and sort the contents of the
        > > > DataGrid.
        > > > I want to know how to determine which column is being used to order
        > > > the[/color][/color]
        >[color=green]
        > > sorted data.[/color]
        >[color=green][color=darkred]
        > > > I can't see in the microsoft DataGrid in vb.net the Event
        > > > 'SortCommand'.
        > > > I think that its because I'm using vb.net not asp.
        > > >[/color]
        > >[/color]
        >[color=green]
        > >[/color]
        >[/color]

        --
        Outgoing mail is certified Virus Free.
        Checked by AVG Anti-Virus (http://www.grisoft.com).
        Version: 7.0.230 / Virus Database: 263.3.3 - Release Date: 6/18/2004


        Comment

        Working...