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

User controls in grid

Thread ID:





63449 Jul 4,2007 09:52 AM UTC Jul 4,2007 10:21 PM UTC WinForms 1
Tags: GridControl
Asked On July 4, 2007 09:52 AM UTC

I have some problems using an essential grid with user controls.
1. Controls don't look like they must. For example buttons are white colored and have flat style. But all must look like no grids on form but only controls.
2. When cell is activated and the control in cell become focused other cells moving down some pixels so little white spaces betweeen borders appear.

haneefm [Syncfusion]
Replied On July 4, 2007 10:21 PM UTC

Hi Hanna,

If you want to host this control in a single grid cell, then you can do this by setting the celltype of the cell to be a control and then set the control that you want the cell to be associated with. Below is the code.

this.gridControl1[2,2].CellType = "Control";
this.gridControl1[2,2].Control = userControl1;

If you want to have this control in several cells, then you will have to create a custom celltype deriving the control. 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.

Please refer the DerivedCellControlTutorial sample in the browser samples for more details.
[install drive]\Syncfusion\Essential Studio\\windows\Grid.Windows\Samples\In Depth\DerivedCellControlTutorial\

Below are the forum threads that discuss with "Multiple Button control" celltype in a grid.

See this forum thread, CardControl in a gridcell.

Best regards,


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