GridView

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ganesh22
    Banned
    New Member
    • Sep 2007
    • 81

    #1

    GridView

    Hi,
    Iam displaying a data in a gridview with datasource as Dataset, but my requirement is i want to display a grid with desending order based on regid( column) in sqlserver
  • Curtis Rutland
    Recognized Expert Specialist
    • Apr 2008
    • 3264

    #2
    So modify your SQL statement with an ORDER BY clause.

    Comment

    • malav123
      New Member
      • Feb 2008
      • 217

      #3
      Yes it's true just change your sql statement like,

      select regid,name,emai l,homephone,cit y from Table_name order by regid desc

      Comment

      • kunal pawar
        Contributor
        • Oct 2007
        • 297

        #4
        THen u have to add ORDER BY clause in ur SQL statement
        like above expert suggest

        Comment

        Working...