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.

GridControl Control

Thread ID:

Created:

Updated:

Platform:

Replies:

31378 Jul 6,2005 11:11 AM Jul 6,2005 01:58 PM Windows Forms 1
loading
Tags: GridControl
Dima
Asked On July 6, 2005 11:11 AM

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 01:58 PM

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.

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.

;