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.
Syncfusion Feedback

DataGrid general questions

Thread ID:

Created:

Updated:

Platform:

Replies:

22692 Dec 20,2004 07:47 AM UTC Dec 20,2004 08:39 AM UTC Windows Forms 3
loading
Tags: GridControl
simos
Asked On December 20, 2004 07:47 AM UTC

Hello everybody I have the followign questions. 1. How can I use a custom control (derived from .net controls) as a cell editor. 2. Can I use Virtual Grid with various cell types eg "ComboBox". What else I have to implement? 3. Can I select which fields to be displayed in a DataBound GridListBox. Thank you. :)

Administrator [Syncfusion]
Replied On 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.

simos
Replied On 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.

simos
Replied On 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.

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.

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

;