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

sorting databoundgrid having unbound column

Thread ID:





8016 Oct 16,2003 07:21 PM UTC Oct 16,2003 07:28 PM UTC WinForms 1
Tags: GridControl
Rajeev Kulam
Asked On October 16, 2003 07:21 PM UTC

Hi, I have a databound grid that stores cell styles and row styles in a hashtable. The cell styles are used to populate an unbound column in the grid. When I sort this databound grid, it messes the relationship between rowstyles in the hash table and the grid. Does grid has any mapping mechanism that could be used to recreate this hash table? Thanks in advance

Administrator [Syncfusion]
Replied On October 16, 2003 07:28 PM UTC

There is no mapping maintained by the grid. The sorting is being done via the IBindingList sort support for the datasource. You should use the primary key for the row as the key for the hashtable storing the style values. This way, when you want to get a particular style on any given row, you retrieve the primary key for that row, and then use that key to look up the style in your hashtable. Even if the grid is sorted or filtered, the primary key value for the row will be able to retrieve the proper value from the hashtable.


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