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.

Custom renderer

Thread ID:

Created:

Updated:

Platform:

Replies:

55292 Jan 26,2007 12:31 PM Jan 31,2007 07:31 PM Windows Forms 3
loading
Tags: GridControl
Stuart Grimsell
Asked On January 26, 2007 12:31 PM


I am trying to attach a custom renderer to the first column in a hierarchical grid.

I cannot get the renderer to be attached to the column if I have "ShowTreeLines" set to true - I always get the standard GridDataBoundTreeCellRenderer instead (my renderer is derived from this one).

How can I do this.....

Thanks

Stuart

Administrator [Syncfusion]
Replied On January 29, 2007 02:00 PM

Hi Stuart,

We were not able to reproduce the issue here. Is it possible for you to upload us a sample or modify the browser sample to reproduce the issue here? This will help us to analyse the issue further.

Best Regards,
Haneef

Stuart Grimsell
Replied On January 30, 2007 07:37 AM


Haneef,

Attached is a zipped project that shows the problem ( I think ).

Toggle the check box to set whether the grid is showing tree lines - my renderer paints everything a rather fetching violet.

Thanks,

Stuart

Renderer.zip

Administrator [Syncfusion]
Replied On January 31, 2007 07:31 PM

Hi Stuart,

Do you want to replace the DataBoundTreeCell with your FunkyDrawCell in a grid? If so, you should remove the databound treecell from the cellmodel and add your FunkyDrawCell to cellmodel. Here is a code snippet to show this.

FunkyDrawModel parp = new FunkyDrawModel( gridDataBoundGrid1.Model );
//gridDataBoundGrid1.Model.CellModels.Add("FunkyDraw", parp );
gridDataBoundGrid1.Model.CellModels.Remove("DataBoundTreeCell");
gridDataBoundGrid1.Model.CellModels.Add("DataBoundTreeCell", parp );

Here is a modified sample.
Renderer.zip

Best Regards,
Haneef

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.

;