Oystein

Oystein

  • NA
  • 3
  • 0

DataGridView - sort by numbers

Oct 9 2006 5:07 AM
Hi all,
I'm developing a system in c# and have added som values to my datagridview. In the first column i have numbers. When i try to sort the datagridview by this numbers it seems like they are ordered by string.
Eksample:

Column 1:
2
10

After order:
10
2

I have tried to set the ValuType without any luck.

Can anyone help me with this problem?

Regards