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.

CellValue with ANY object type

Thread ID:

Created:

Updated:

Platform:

Replies:

9187 Dec 9,2003 06:33 PM Dec 10,2003 02:15 AM Windows Forms 3
loading
Tags: GridControl
IOMS
Asked On December 9, 2003 06:33 PM

Is it possible to have a data source where the column type is any obitary object (say a custom collection etc.etc) and then have a custom cell renderer which uses the CellValue value during OnDraw to draw the custom object?

Administrator [Syncfusion]
Replied On December 9, 2003 07:03 PM

Yes, that should be possible. Check out the Samples\CellTypes\ComboboxCells sample for example. There you can find a DataRowView being stored as cell value and one of its the DataRowViews fields being displayed within the cell. Stefan

IOMS
Replied On December 9, 2003 07:51 PM

Thanks for the quick reply but.... That sample uses the non-bound grid and looks very complicated. ------ Here is a sample app which shows the problem and exactly what I'm trying to do. The CellValueType says it's an ArrayList which is correct but the CellValue just return a blank string!

Administrator [Syncfusion]
Replied On December 10, 2003 02:15 AM

Try using tbl.Columns.Add("col", typeof(object)); //.... row["col"] = new ArrayList(); instead of tbl.Columns.Add("col", typeof(ArrayList)); //... row["col"] = new ArrayList();

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.

;