Click or drag to resize

CustomCell Class

Cell for Grid controls to create custom content for the cell.
Inheritance Hierarchy

Namespace:  Eto.Forms
Assembly:  Eto (in Eto.dll) Version: 2.5.3-dev
Syntax
public class CustomCell : Cell

The CustomCell type exposes the following members.

Constructors
  NameDescription
Public methodCustomCell
Initializes a new instance of the CustomCell class
Top
Properties
  NameDescription
Public propertyConfigureCell
Gets or sets a delegate to configure an cell when it is reused for a different row or the data changes.
Public propertyCreateCell
Gets or sets a delegate to create the contents of the cell.
Public propertyGetIdentifier
Gets or sets a delegate to get the identifier of the cell based on its content.
Public propertyGetPreferredWidth
Gets or sets a delegate to get the preferred width of the cell based on its content.
Public propertyStatic memberSupportsControlView
Gets a value indicating that the CustomCell on the current platform supports using a Control for its view mode. Gtk and WinForms only support custom controls when editing a cell.
Top
Methods
  NameDescription
Public methodStatic memberCreateTControl
Creates a new CustomCell with instances of the specified TControl type.
Protected methodGetCallback
Gets an instance of an object used to perform callbacks to the widget from handler implementations
(Overrides WidgetGetCallback.)
Protected methodOnConfigureCell
Configures an existing cell when it is reused for a different row or the data changes.
Protected methodOnCreateCell
Creates an instance of the control for a cell.
Protected methodOnGetIdentifier
Gets the identifier of the cell based on its content.
Protected methodOnGetPreferredWidth
Gets the preferred width of the cell based on its content.
Protected methodOnPaint
Raises the Paint event.
Top
Events
  NameDescription
Public eventPaint
Event to handle painting the content of the cell when SupportsControlView is false.
Top
Remarks
The CustomCell is useful when you want to provide a fully custom implementation of a cell, including editable controls. Note that some platforms bahave differently with a CustomCell, depending on the value of SupportsControlView. When false, the grid will use the Paint event to paint the contents of each cell, and only use CreateCell and ConfigureCell when the cell is in edit mode. When true, the CreateCell and ConfigureCell methods will be used for all cells, even when not in edit mode.
See Also