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 ordering

Status
Not open for further replies.

bouwob

Programmer
Apr 12, 2006
171
US
I have a generic gridview that is used in many reports.

For it to work I bind a datatable to the gridview. The problem I am having is that the columns that hold numbers sort by string instead of int. I cannot chage the control itself since many different reports with many different types of data use the same control.

Hold do I force the sort to sort by int instead of string via the bind or set up of the datasource?
 
the data columns should have the datatype set to the appropriate data type. then, use the dataview to sort and bind to the grid.

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

Part and Inventory Search

Sponsor

Back
Top