The combo box cell and button edit cell can be implemented by having a ComboCellModel and the ComboCellRenderer that is derived from GridComboCellModel and GridComboCellRenderer.
The above link helps to learn about custom cell renderer and also we can learn how the cell models and cell renderer will be works.
Creating Cell Model
In the combo cell model, the combo cell renderer class object is invoked by a CreateRenderer() override method.
Creating Cell Renderer
In the combo cell renderer, the customization of the cell is achieved. The combo box button is added to ComboCellRenderer.
Adding Cell Models
The created model (ComboCellModel) can be added into CellModels collection and the cell type name ComboBoxButtonEditCell can be defined.
Assigning Cell type
The cell type ComboBoxButtonEditCell can be assigned to a cell or range of cells using the CellType property.
Event for the Cell Button
To trigger an event when cell button clicked, the renderer.button.Clicked event can be used. This event is coded in the cell renderer level. Likewise, any events can be added in ComboBoxButtonEditCell.
|Article ID:||Published Date:||Last Revised Date:||Platform:||Control:|