problem in datagrid sorting

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sugee
    New Member
    • Jan 2007
    • 35

    problem in datagrid sorting

    hi,
    I have a datagrid which shows the list of methods and a serial number associated with it. The number indicates the order in which it gets executed. I need to change the oder say i need to make the first method to run at last. so i change the number as five. It should be pulled on to the last and other items should be pushed before. Can anyone suggest me how to do sorting?
    Regards,
    Suguna
  • kenobewan
    Recognized Expert Specialist
    • Dec 2006
    • 4871

    #2
    Here is an article that may help:
    ASP.NET DataGrid Column Sorting

    Comment

    • sugee
      New Member
      • Jan 2007
      • 35

      #3
      hi,
      thanks for u reply...but i don need to sort but...rearrange the numbers....like if there r five methods and i have changed the value of first one to be 5 and that 1 st method shd move to 5 th position and 2nd shd move first and 3 rd to 2 nd....how can i do this?

      Comment

      • ashasprabhu
        New Member
        • Jan 2007
        • 52

        #4
        hi sugee,
        if u r using the query to rebind the datagrid u can use the order by key word to rearrange the gridvalues while rebinding
        hope this helps u

        Comment

        Working...