3

I have 5 columns in my datagrid? I want to sort the datagrid in ascending and decending order based on a particular column.

My question is, how do I implement sorting for only one column?

As the data in these column is of a string datatype, can numerical data be sorted? any help appreciated. thanks

Also, when I sort, it doesnt sort according to the numerical value in the column.

It's winforms.. btw, I got the solution.. i passed the values as strings thatsy it didnt sort numerically.. now it does.. thanks guyzz

2
  • Is the built in sort for the WPF Toolkit not what you need?? Commented Jan 8, 2010 at 14:00
  • figured out how to do it Commented Jan 8, 2010 at 14:44

1 Answer 1

1

If you use a DataTable and a DataGridview then Sorting is built-in. For other situations, you need to add more info.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.