Hi All,I am having three columns in my gridview.(EmployeeID,EmployeeCode and EmployeeName).My sorting is very fine with EmployeeID and EmployeeCode column as they are integer.But it is not ok with the EmployeeName. EmployeeName is a string type variable.I am using both paging and sorting in my page.Do consider this also. Can u plz tell me what may be the problem is.And what can be done to solve it. ThanksGitanjali.
Is it client side or server side sorting !!!
I think u have set : Client Side Sorting , if yes then try server side sorting
Ya it is doing the sorting but according the page size.i mean it will sort only those datas present in the first page.i am using paging also.
At a same time it is sorting only those that present in that page not the whole datasource.Is it a problem of using paging and sorting at the same time.
My codes are like
WorkTimesGridView is the gridview ID.
BindEmployeeWorkTimeGrid();
}
Plz help me to solve this problem.
Thanks
Gitanjali
It really depends on what your specific problem is. I am trying to reproduce something similar to what you describe, unfortunately to no avail - my UltraWebGrid instance by default is sorting int (and in fact various numeric types) and strings (varchar in database) just fine.
If you have data that needs to be sorted based on certain criteria different from the default, I can suggest taking a look at our Custom Sorting example located here:
http://samples.infragistics.com/2008.1/webfeaturebrowser/WebGrid/GridSorting/WebForm2.aspx
( full C# / VB.NET source code in the code tabs above the example)