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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Sorting

Thread ID:

Created:

Updated:

Platform:

Replies:

40740 Feb 11,2006 02:06 AM UTC Feb 14,2006 04:31 AM UTC WinForms 1
loading
Tags: Grouping
Heath Brand
Asked On February 11, 2006 02:06 AM UTC

Hi, I''m binding a GGC to a DataTable populated with the following query: select * from products order by productname; However, the rows in the GGC are not ordered by productname but by productid. I found out that this is being caused by the following line of code: adapter.MissingSchemaAction = MissingSchemaAction.AddWithKey; which will result in the ProductId column being added as a primary key entry in the TableDescriptor. I was wondering if there is a way to avoid the sorting by primary key? Heath

Administrator [Syncfusion]
Replied On February 14, 2006 04:31 AM UTC

Hi Heath, This issue is now corrected in our codebase and it''ll be available in the next build. In the meantime, you can call the following method to solve this issue. this.gridGroupingControl1.TableDescriptor.PrimaryKeyColumns.Clear(); Best Regards, Leo.

CONFIRMATION

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.

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

;