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.
Syncfusion Feedback

Image List

Thread ID:

Created:

Updated:

Platform:

Replies:

78539 Dec 17,2008 02:37 PM UTC Dec 18,2008 06:04 AM UTC Windows Forms 1
loading
Tags: GridControl
Nassim Farhat
Asked On December 17, 2008 02:37 PM UTC

Hello,

My question concerns image lists and placing images within cells next to text.

What grids support this feature?

So far, I only saw GridControl and GridListControl. Can GridGroupingControl support this?

By the way, Thanks for the efficient service.


Nisha Arockiya A [Syncfusion]
Replied On December 18, 2008 06:04 AM UTC

Hi Nassim,

Thanks for your interest in Syncfusion Products.

You need to have a custom celltype for this support to have both image and text inside a cell. To create a custom celltype, it requires a model class and a renderer class. The model class handles the serialization requirements for the control and creates the renderer class. The renderer class handles the UI requirements of the cell. After creating the custom celltype, it has to be registered through grid.TableModel.CellModels.Add function.

Please refer the below sample in GridControl, that helps in having both image and text in a cell using custom celltype. You can use the same celltype for your GridGroupingControl also. In the QueryCellStyleInfo event you can set the e.Style.CellType to be your custom celltype for the desired cells.

Sample for reference:
http://www.syncfusion.com/Support/user/uploads/CustomResizeTofit_ca1b3509.zip

Let me know if this helps.

Regards,
Nisha


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

;