Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

GridView not Paging/Sorting with DataTable, does it need Dataset?

Status
Not open for further replies.

fr2

Programmer
May 13, 2008
45
US
Passing a dataTable as the datasource to the GridView does not bring up the automatic Paging/Sorting feature ....

does the GridView Automatic Paging/Sorting only work when u pass a Dataset as the datasource ... and then datamember=dataTable ....?
 
if you want to use automatic paging/sorting you must set the allow paging/sorting flags to true and set a sort expression for the sorting.

Jason Meckley
Programmer
Specialty Bakers, Inc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top