Class GridViewBaseCustomColumn<T, I>
Base class implementation for an IDivergentColumnType. All divergent columns should derive from this class
Inheritance
Namespace: Simplic.UI.GridView
Assembly: Simplic.UI.dll
Syntax
public abstract class GridViewBaseCustomColumn<T, I> : GridViewBoundColumnBase where T : IDivergentColumnType where I : FrameworkElement
Type Parameters
Name | Description |
---|---|
T | Type of the IDivergent column/configuration |
I | Type of the control which will be shown in an editable cell |
Constructors
| Improve this Doc View SourceGridViewBaseCustomColumn(T, ColumnConfigurationModel, GridViewControl)
Create new base for editable column
Declaration
public GridViewBaseCustomColumn(T configuration, ColumnConfigurationModel column, GridViewControl grid)
Parameters
Type | Name | Description |
---|---|---|
T | configuration | Configuration of the Input-Control to create |
ColumnConfigurationModel | column | Column configuration |
GridViewControl | grid | Instance of the grid |
Properties
| Improve this Doc View SourceCellDefaultFocusable
Default focusable value of a cell
Declaration
public bool CellDefaultFocusable { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
ColumnConfiguration
Configuration of the current column
Declaration
public ColumnConfigurationModel ColumnConfiguration { get; }
Property Value
Type | Description |
---|---|
ColumnConfigurationModel |
Configuration
Input element configuration
Declaration
public T Configuration { get; }
Property Value
Type | Description |
---|---|
T |
Grid
Current grid view instance
Declaration
public GridViewControl Grid { get; }
Property Value
Type | Description |
---|---|
GridViewControl |
RedirectFocusByDefault
Redirect focus to the nested control by default. (Default = true)
Declaration
public bool RedirectFocusByDefault { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
SyncCurrentCellOnGotFocus
Will set the current cell if the nested element got it's focus
Declaration
public bool SyncCurrentCellOnGotFocus { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
| Improve this Doc View SourceCellGotFocus(GridViewCell)
Default action when a cell got focus (redirection)
Declaration
public virtual void CellGotFocus(GridViewCell cell)
Parameters
Type | Name | Description |
---|---|---|
GridViewCell | cell | Cell instance |
CellGotKeyboardFocus(GridViewCell)
Default action when a cell got keyboard focus (redirection)
Declaration
public virtual void CellGotKeyboardFocus(GridViewCell cell)
Parameters
Type | Name | Description |
---|---|---|
GridViewCell | cell | Cell instance |
CreateCellElement(GridViewCell, Object)
Create input element for editing
Declaration
public override FrameworkElement CreateCellElement(GridViewCell cell, object dataItem)
Parameters
Type | Name | Description |
---|---|---|
GridViewCell | cell | |
System.Object | dataItem |
Returns
Type | Description |
---|---|
System.Windows.FrameworkElement |
CreateInputElement(GridViewCell, Object)
Create the input control (e.g. CheckBox)
Declaration
public abstract I CreateInputElement(GridViewCell cell, object dataItem)
Parameters
Type | Name | Description |
---|---|---|
GridViewCell | cell | Grid view cell |
System.Object | dataItem | Data item |
Returns
Type | Description |
---|---|
I | Control to create |
OnControlCreated(FrameworkElement)
Method which has to be called, when a new control is created.
Declaration
protected virtual void OnControlCreated(FrameworkElement control)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.FrameworkElement | control |