Wednesday, April 18, 2012

How to sort the entire gridview rows by the datetime column?


  • There's a gridview on my asp page and sqldatasource to bind the data
    table info to gridview.

  • I have 6 columns:

  • First column is called ID : type : int, increment by one , primary
    key.

  • The other columns are name,age etc..

  • The last column is called Added : type : datetime .



I need to add a button or dropdownlist doesn't matter where I can sort the entire gridview rows by the DateTime Column.





No comments:

Post a Comment