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

CellValue with ANY object type

Thread ID:

Created:

Updated:

Platform:

Replies:

9187 Dec 9,2003 11:33 PM UTC Dec 10,2003 07:15 AM UTC WinForms 3
loading
Tags: GridControl
IOMS
Asked On December 9, 2003 11:33 PM UTC

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 10, 2003 12:03 AM UTC

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 10, 2003 12:51 AM UTC

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 07:15 AM UTC

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.

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

;