My datagrid column, ID, Name, Member Number and there are about 50 entries into it. It reads an xml database and adds rows at runtime.

When i click on the row to sort you can see the arrow up or down, and most of them sort but there will be an odd one that shouldnt be there like:

39 ect.

I checked to make sure there was no whitespace or anything like that but there isnt whats going on.

You may have stumbled upon a known bug within the grid's internal binding logic. But, before I say that for sure, maybe you should post some code that shows your symptom, and we will see.

I assume you have a binding source for the grid ?