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.
Unfortunately, activation email could not send to your email. Please try again.


Thread ID:





40740 Feb 10,2006 09:06 PM Feb 13,2006 11:31 PM Windows Forms 1
Tags: Grouping
Heath Brand
Asked On February 10, 2006 09:06 PM

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 13, 2006 11:31 PM

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.


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.

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.