SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have built a SPgridview with Filtering, Sorting and Paging. In the grid , i have one numeric type column and other are string columns.

There is a issue while filtering the numeric type column, the filter column showing the values in ascending order like (10000, 10001, 12,145,..... ).

Actually it sorting the values in string type instead of nueric type..

Expected result should be like that 12,145, 10000, 10001,.......

i have spent much time in google.. Not able to find the solution. Pls help.

How to fix the issue? Thanks

share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.