custom sorting in gridview

Discussion in 'ASP .Net Web Controls' started by AVL, Oct 21, 2008.

  1. AVL

    AVL Guest

    Hi
    I want to implment cusotm sorting in gridview...
    Ive a dropdown box on my page where ive all the fields(columsn) to be sorted..
    whenever hte user selects the value in the dropdown , the gridview should be
    sorted...

    As of now, whenever user selects a value in the dropdown , Im rebinding
    the grid with sorting applied....
    but this is hittng the page performance...

    so Im thinking to get the datasource associated with the girdview and then
    sort the data...
    Ive used gridview,DataSource property to retrieve the datatable associated
    with it..
    but its always returning null.

    can some one help me out with this issue.
    why is the DataSource property returnign null though the data is present...
    How the .net has implemented the default sorting without reloading..??.
    AVL, Oct 21, 2008
    #1
    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. Liming

    Custom GridView Header and sorting

    Liming, Oct 2, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    355
    Liming
    Oct 2, 2006
  2. Aamir Ghanchi
    Replies:
    2
    Views:
    762
    =?Utf-8?B?TGFkaXNsYXYgTXJua2E=?=
    Aug 23, 2007
  3. Replies:
    1
    Views:
    471
    Milosz Skalecki [MCAD]
    Dec 30, 2007
  4. AVL

    custom sorting in gridview

    AVL, Oct 21, 2008, in forum: ASP .Net
    Replies:
    1
    Views:
    968
    Lisa Ashley Rafter
    Oct 21, 2008
  5. jobs
    Replies:
    2
    Views:
    1,569
Loading...

Share This Page