DataGrid SortCommand event not triggered

Discussion in 'ASP .Net' started by John Sturgeon, Nov 26, 2003.

  1. Hello:

    When creating a dynamic datagrid (i.e. columns are not added until runtime),
    and enabling allow sorting, the SortCommand event is never fired. Anyone
    know why or a way around it? This is in .NET Framework 1.1 and VS.NET 2003.

    Thanks,

    John
     
    John Sturgeon, Nov 26, 2003
    #1
    1. Advertising

  2. John Sturgeon

    Tommy Guest

    1. Try to enable viewstate on the datagrid
    2. Try to create create the dynamic columns

    Tommy,

    "John Sturgeon" <> wrote in message news:<>...
    > Hello:
    >
    > When creating a dynamic datagrid (i.e. columns are not added until runtime),
    > and enabling allow sorting, the SortCommand event is never fired. Anyone
    > know why or a way around it? This is in .NET Framework 1.1 and VS.NET 2003.
    >
    > Thanks,
    >
    > John
     
    Tommy, Nov 27, 2003
    #2
    1. Advertising

  3. (Tommy) wrote in
    news::

    > 1. Try to enable viewstate on the datagrid
    > 2. Try to create create the dynamic columns
    >
    > Tommy,
    >
    > "John Sturgeon" <> wrote in message
    > news:<>...
    >> Hello:
    >>
    >> When creating a dynamic datagrid (i.e. columns are not added until
    >> runtime), and enabling allow sorting, the SortCommand event is never
    >> fired. Anyone know why or a way around it? This is in .NET Framework
    >> 1.1 and VS.NET 2003.
    >>
    >> Thanks,
    >>
    >> John

    >


    What do you mean by "Create Create" the dynamic columns?

    Thanks,

    John
     
    John Sturgeon, Dec 2, 2003
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Mo
    Replies:
    0
    Views:
    464
  2. =?Utf-8?B?UGF1bA==?=

    SortExpression makes SortCommand event not to trig

    =?Utf-8?B?UGF1bA==?=, Sep 22, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    471
    =?Utf-8?B?UGF1bA==?=
    Sep 22, 2005
  3. Manav

    SortCommand Event in DataGrid

    Manav, Feb 25, 2004, in forum: ASP .Net Datagrid Control
    Replies:
    1
    Views:
    131
    Scott Mitchell [MVP]
    Feb 25, 2004
  4. sa siva via .NET 247

    SortCommand and PageIndexChange event not firing

    sa siva via .NET 247, Mar 24, 2005, in forum: ASP .Net Datagrid Control
    Replies:
    2
    Views:
    156
    Cole Trickle
    May 5, 2005
  5. biru
    Replies:
    2
    Views:
    231
Loading...

Share This Page