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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Image type cell in GGC

Thread ID:





91624 Nov 25,2009 03:53 PM UTC Nov 27,2009 07:33 AM UTC WinForms 5
Tags: GridControl
Kannan Venkataramani
Asked On November 25, 2009 03:53 PM UTC

Had been using the GDBG, but due to problems with filtering, i was advised to use the GGC, now am having issues with setting the image type of the cell to display images.

The grid is bound to a dataset that contains a bitmap image column, i would want to display that image in the column.

Also how do i set the header text in the GGC.

Previously i used:
//gridPending.Binder.InternalColumns["Approve"].StyleInfo.CellType = "Image";
//gridPending.Binder.InternalColumns["Approve"].HeaderText = "A";

Now i tried the following below, but not working.

gridPending.TableDescriptor.Columns[0].Appearance.AnyRecordFieldCell.CellType = "Image";
//gridPending.TableModel.ColStyles["Approve"].CellType = "Image";

Jisha Joy [Syncfusion]
Replied On November 26, 2009 08:48 AM UTC

Hi Kannan,

Please try the following code and let me know if this helps.

this.gridGroupingControl1.Engine.ShowNestedPropertiesFields = false;
this.gridGroupingControl1.TableDescriptor.Columns["Image"].Appearance.AnyRecordFieldCell.CellType = GridCellTypeName.Image;


Kannan Venkataramani
Replied On November 26, 2009 10:49 AM UTC

Thanks Jisha,

That was fantastic, worked a treat, is there a easy way to highlight a row when clicked on it?

Jisha Joy [Syncfusion]
Replied On November 26, 2009 12:13 PM UTC

Hi Kannan,

Thank you for your update. You could use the following code to achieve the desired behavior.
//Form Load
this.gridGroupingControl1.TableOptions.ListBoxSelectionMode = SelectionMode.One;


Kannan Venkataramani
Replied On November 26, 2009 02:54 PM UTC

Thanks again, everything is fine now

Lingaraj S [Syncfusion]
Replied On November 27, 2009 07:33 AM UTC

Hi Kannan,

Thanks for the update and using Syncfusion products.

Lingaraj S.


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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