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.

Image type cell in GGC

Thread ID:

Created:

Updated:

Platform:

Replies:

91624 Nov 25,2009 10:53 AM Nov 27,2009 02:33 AM Windows Forms 5
loading
Tags: GridControl
Kannan Venkataramani
Asked On November 25, 2009 10:53 AM

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 03:48 AM

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;

Regards,
Jisha

Kannan Venkataramani
Replied On November 26, 2009 05:49 AM

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 07:13 AM

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;

Regards,
Jisha

Kannan Venkataramani
Replied On November 26, 2009 09:54 AM

Thanks again, everything is fine now

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

Hi Kannan,

Thanks for the update and using Syncfusion products.

Regrads,
Lingaraj S.

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.

;