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?
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?