We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

SortComparer for DataTable items source

Thread ID:





148522 Oct 23,2019 01:07 PM UTC Oct 24,2019 05:32 AM UTC WPF 2
Tags: SfDataGrid
Ondrej Svoboda
Asked On October 23, 2019 01:07 PM UTC

I have SfDataGrid bound to DataTable with AutoGenerateColumns="True". I need to define custom sort comparer for string columns (to suport natural sorting).
Is there a way how to do it?


Ondrej Svoboda
Replied On October 23, 2019 02:33 PM UTC

I've found the solution in the other thread: https://www.syncfusion.com/forums/121745/filter-on-the-combobox-itemssource
Converting DataTable to dynamic objects does the trick.

Farjana Parveen Ayubb [Syncfusion]
Replied On October 24, 2019 05:32 AM UTC

Hi Ondrej, 
Thanks for the update. 
We are glad to know that the reported problem has been resolved at your end. Please let us know if you have any further queries on this. We are happy to help you. 
Farjana Parveen A 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon