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.

Binding custom collections to a GDBG

Thread ID:

Created:

Updated:

Platform:

Replies:

41165 Feb 23,2006 10:56 AM Feb 27,2006 04:46 AM Windows Forms 1
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On February 23, 2006 10:56 AM

I am working on binding a custom collection (Derived from System.Collections.CollectionBase) of custom objects to a GridDataBoundGrid. I have used the DataBoundColumns designer to define which object properties bind to each visible column in the grid. So far the approach I''m taking is working well, but I am having some difficulty determining how to do the folloing: 1. Obtain a reference to the currently selected object in the grid (the grid allows only single selection). 2. Programatically change the selected object (row) based-on a a reference to that object. 3. Allow the grid to be re-sorted by double-clicking the column headers (in a manner similar to if the DataSource was a DataSet rather than a custom collection). Also, resorting preserving which row is selected. TIA for any help! Dave

stanleyj [Syncfusion]
Replied On February 27, 2006 04:46 AM

Hi Dave, Sorting and preserving the selected row will work smooth in GGC. Can you try using GridGroupingcontrol. Regards, Stanley

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.

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.

;