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

GridControl Control

Thread ID:





31378 Jul 6,2005 03:11 PM UTC Jul 6,2005 05:58 PM UTC WinForms 1
Tags: GridControl
Asked On July 6, 2005 03:11 PM UTC

Hi, I''m using GridControl, and I have some usercontrol that i want to show in certain column. There is CellType that called Control, how can I used ( without creating new CellTypeModel), and I prefer to ascribe my control to column in design time. Is it possible? Thanks in advance.

Administrator [Syncfusion]
Replied On July 6, 2005 05:58 PM UTC

The Control celltype will need a new instance of your control for every cell that uses it. So, it would be difficult and probably not too efficient to put such a control in every cell of a column. (You would not be able to to do this just by setting grid.ColStyles[colIndex] to set the style on the column. You would have to loop through each cell in the column, and set grid[rowIndex, colIndex].CellType and grid[rowIndex, colIndex].Control for every cell.) If you need a UserControl to appear in many cells, it is better to derive a celltype that will share a single instance of the control across many cells. The \Essential Suite\Windows\Grid.Windows\Samples\CellTypes\CalendarCells is one of several samples that does something like this.


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