how to Sort a runtime Dynamically created datagrid using templates

Discussion in 'ASP .Net' started by =?Utf-8?B?R1A=?=, Feb 25, 2005.

  1. I have created a datagrid that is creating columns dynamically at runtime using
    the template columns.Edit ,add & delete works fine.
    The only problem I face is with sorting,I am setting the sorting expression
    to the column name and checked the allow sorting checkbox to true.
    The code never reaches the DataGrid1_SortCommand,But I do see the underlines
    in the header text which looks it will sorting.Any help is greatly
    appreiciated.
    Thanks
    GP
     
    =?Utf-8?B?R1A=?=, Feb 25, 2005
    #1
    1. Advertising

  2. Hi,

    are you doing paging also in the grid...?

    If it so then you've to be little more careful... In either case the
    following article will help you to sort your grid with paging or without
    paging future.

    http://www.dotnetjunkies.com/Tutorial/E169C6D4-D335-4D2B-AE3F-918EE3161815.dcik

    Cheers,

    Jerome.M

    "GP" wrote:

    > I have created a datagrid that is creating columns dynamically at runtime using
    > the template columns.Edit ,add & delete works fine.
    > The only problem I face is with sorting,I am setting the sorting expression
    > to the column name and checked the allow sorting checkbox to true.
    > The code never reaches the DataGrid1_SortCommand,But I do see the underlines
    > in the header text which looks it will sorting.Any help is greatly
    > appreiciated.
    > Thanks
    > GP
     
    =?Utf-8?B?RG90TmV0SmVyb21l?=, Feb 26, 2005
    #2
    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. JKop
    Replies:
    3
    Views:
    492
  2. recover
    Replies:
    2
    Views:
    831
    recover
    Jul 25, 2006
  3. gnewsgroup
    Replies:
    4
    Views:
    8,701
    bigal
    May 21, 2008
  4. msimmons
    Replies:
    0
    Views:
    514
    msimmons
    Jul 16, 2009
  5. Navin
    Replies:
    1
    Views:
    728
    Ken Schaefer
    Sep 9, 2003
Loading...

Share This Page