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

Grid grouping control

Thread ID:

Created:

Updated:

Platform:

Replies:

67850 Aug 31,2007 10:11 PM UTC Sep 1,2007 01:47 AM UTC WinForms 1
loading
Tags: GridControl
Sudharsini Ravikumar
Asked On August 31, 2007 10:11 PM UTC

Hi

Is it possible to use the GridGroupingControl and also have RichTextcells, picture box cells etc?

Thanks
Sudha

J.Nagarajan [Syncfusion]
Replied On September 1, 2007 01:47 AM UTC

Hi Sudha,

Thanks for your interest in Syncfusion product.

Regarding the Picture Cell:

You can add PictureBox cells in grid by using the below code snippet:

//To Add a Picture box
this.gridDataBoundGrid1.Model.CellModels.Add("ImageAndButton", new PictureBoxCellModel(this.gridDataBoundGrid1.Model));//new ImageAndButtonCellModel(this.gridDataBoundGrid1.Model));
GridStyleInfo style = this.gridDataBoundGrid1.Binder.InternalColumns["Index"].StyleInfo;
style.CellType = "ImageAndButton";

PictureBoxStyleProperties tsp = new PictureBoxStyleProperties(new GridStyleInfo(gridDataBoundGrid1.Binder.InternalColumns["Index"].StyleInfo));
tsp.SizeMode = PictureBoxSizeMode.AutoSize;
tsp.Image = SystemIcons.Information.ToBitmap();

Regarding the RichTextBox Cell:

You can add RichTextBox cell in a grid by setting the CellType property of the GridStyleInfo object to "RichText". Here is a code snippet that shows this task.

this.gridDataBoundGrid1.Binder.InternalColumns[3].StyleInfo.CellType = "RichText";

Please refer to the attached sample for implementation and let me know if this helps.
http://websamples.syncfusion.com/samples/Grid.Windows/F67852/main.htm


Regards,
Nagaraj

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

;