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.

Celltype

Thread ID:

Created:

Updated:

Platform:

Replies:

39436 Jan 7,2006 08:16 AM Jan 9,2006 01:43 AM Windows Forms 2
loading
Tags: GridControl
resmi
Asked On January 7, 2006 08:16 AM

In GGC ,i need a cell with Ellipse.When i click on it Open File should open ie one Browse btn should attch with data in that cell Give me a solution

stanleyj [Syncfusion]
Replied On January 9, 2006 12:56 AM

Hi, A custom CellType can be created with a model class and a renderer class. The model class creates the renderer class and the renderer class handles the UI requirements of the cell. This sample in Syncfusion\Essential Studio\4.1.0.10\windows\Grid.Windows\Samples\In Depth\CellButtons can be refered. After creating the custom celltype, it has to be registered through the CellModels.Add function this.gridGroupingControl1.TableModel.CellModels.Add("OpenFileDialog", new EllipsisCellModel(this.gridGroupingControl1.TableModel)); Then CellType "OpenFileDialog" can be used. The TableControlCellButtonClicked will be raised for the clicks on the GridCellButton. The OnClicked can also be overridden in the EllipsisCellButton class. Note 1. The namespace that is used is to be replaced instead of "forums." in the EllipsisCellButton class static EllipsisCellButton() { iconPainter = new GridIconPaint("forums.", typeof(EllipsisCellButton).Assembly); } 2. Make the image file an embedded resource under the Build Action. Best regards, Stanley

prethi
Replied On January 9, 2006 01:43 AM

Thanks .Its working >Hi, > >A custom CellType can be created with a model class and a renderer class. The model class creates the renderer class and the renderer class handles the UI requirements of the cell. This sample in Syncfusion\Essential Studio\4.1.0.10\windows\Grid.Windows\Samples\In Depth\CellButtons can be refered. > >After creating the custom celltype, it has to be registered through the CellModels.Add function > >this.gridGroupingControl1.TableModel.CellModels.Add("OpenFileDialog", new EllipsisCellModel(this.gridGroupingControl1.TableModel)); > >Then CellType "OpenFileDialog" can be used. > >The TableControlCellButtonClicked will be raised for the clicks on the GridCellButton. The OnClicked can also be overridden in the EllipsisCellButton class. > > >Note > >1. The namespace that is used is to be replaced instead of "forums." in the EllipsisCellButton class > > static EllipsisCellButton() > { > iconPainter = new GridIconPaint("forums.", typeof(EllipsisCellButton).Assembly); > } > >2. Make the image file an embedded resource under the Build Action. > >Best regards, >Stanley

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.

;