AD
Administrator
Syncfusion Team
December 20, 2004 08:13 AM UTC
1) If you only want a single cell to have this particular derived control, then you can set the style.CellType = "Control" and style.Control = yourControlInstance.
If you want to share your control among manay cells, then you will have to derive cell renderer and cellmodel classes that use you control. Take a look at the grid\samples\celltypes\calendar (or slider or ??) in the samples we ship.
2) Yes. In QueryCellInfo, you would set e.Style.CellType to specify the cell (in addition to any other style properties you may need for the celltype).
3) There are two ways to do this. One is to set up your datasource only to contain the fileds you want through the Select statemnt when you get the data. The only is to set the gridListControl1.Grid.Cols.Hidden[colIndex] = true for the columns you want to hide.
SI
simos
December 20, 2004 08:35 AM UTC
>1) If you only want a single cell to have this particular derived control, then you can set the style.CellType = "Control" and style.Control = yourControlInstance.
>
>If you want to share your control among manay cells, then you will have to derive cell renderer and cellmodel classes that use you control. Take a look at the grid\samples\celltypes\calendar (or slider or ??) in the samples we ship.
>
>2) Yes. In QueryCellInfo, you would set e.Style.CellType to specify the cell (in addition to any other style properties you may need for the celltype).
>
>3) There are two ways to do this. One is to set up your datasource only to contain the fileds you want through the Select statemnt when you get the data. The only is to set the gridListControl1.Grid.Cols.Hidden[colIndex] = true for the columns you want to hide.
SI
simos
December 20, 2004 08:39 AM UTC
>1) If you only want a single cell to have this particular derived control, then you can set the style.CellType = "Control" and style.Control = yourControlInstance.
>
>If you want to share your control among manay cells, then you will have to derive cell renderer and cellmodel classes that use you control. Take a look at the grid\samples\celltypes\calendar (or slider or ??) in the samples we ship.
>
>2) Yes. In QueryCellInfo, you would set e.Style.CellType to specify the cell (in addition to any other style properties you may need for the celltype).
>
>3) There are two ways to do this. One is to set up your datasource only to contain the fileds you want through the Select statemnt when you get the data. The only is to set the gridListControl1.Grid.Cols.Hidden[colIndex] = true for the columns you want to hide.
Thank you for your prompt response.