Class FilterRowDateTimeCellRenderer
Represents the class that used to draw the date time filter row cell.
Inheritance
Inherited Members
Namespace: Syncfusion.WinForms.DataGrid.RowFilter
Assembly: Syncfusion.SfDataGrid.WinForms.dll
Syntax
public class FilterRowDateTimeCellRenderer : FilterRowCellRenderer<SfDateTimeEdit>, IGridCellRenderer<TableControl>, IDisposable, IFilterRowRenderer
Constructors
FilterRowDateTimeCellRenderer()
Declaration
public FilterRowDateTimeCellRenderer()
Methods
CanValidate()
Overridden to cancel the validation of the date time filter row cell.
Declaration
public override bool CanValidate()
Returns
Type | Description |
---|---|
System.Boolean | Returns true when the validation need to be performed; Otherwise return false. |
Overrides
GetControlValue()
Overridden to get the control value for the filter row cell renderer.
Declaration
public override object GetControlValue()
Returns
Type | Description |
---|---|
System.Object | Returns the value of the cell. |
Overrides
GetEditorUIElementBounds()
Overridden to gets the editor bounds of the date time edit control.
Declaration
protected override Rectangle GetEditorUIElementBounds()
Returns
Type | Description |
---|---|
System.Drawing.Rectangle | Returns the bounds of the editor control. |
Overrides
OnEditingComplete(DataColumnBase, SfDateTimeEdit)
Overridden to update the editing complete of the cell.
Declaration
protected override void OnEditingComplete(DataColumnBase column, SfDateTimeEdit currentRendererElement)
Parameters
Type | Name | Description |
---|---|---|
DataColumnBase | column | The DataColumnBase. |
SfDateTimeEdit | currentRendererElement | The editor control of the cell. |
Overrides
OnFilterRowConditionChanged(String)
Overridden to update the filter row condition for the date time filter row cell.
Declaration
public override void OnFilterRowConditionChanged(string filterRowCondition)
Parameters
Type | Name | Description |
---|---|---|
System.String | filterRowCondition | The filter row condition of the column. |
Overrides
OnInitializeEditElement(DataColumnBase, RowColumnIndex, SfDateTimeEdit)
Overridden to initialize the edit element of the date time filter row cell.
Declaration
protected override void OnInitializeEditElement(DataColumnBase column, RowColumnIndex rowColumnIndex, SfDateTimeEdit uiElement)
Parameters
Type | Name | Description |
---|---|---|
DataColumnBase | column | The DataColumnBase of the cell. |
RowColumnIndex | rowColumnIndex | The RowColumnIndex of the cell. |
SfDateTimeEdit | uiElement | The SfDateTimeEdit element of the cell. |
Overrides
OnKeyDown(DataColumnBase, RowColumnIndex, KeyEventArgs)
Overridden to update the key down event for the dateTime edit control.
Declaration
protected override void OnKeyDown(DataColumnBase dataColumn, RowColumnIndex rowColumnIndex, KeyEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
DataColumnBase | dataColumn | The DataColumnBase of the cell. |
RowColumnIndex | rowColumnIndex | The row and column index of the cell. |
System.Windows.Forms.KeyEventArgs | e | The System.Windows.Forms.KeyEventArgs that contains the event data. |
Overrides
OnKeyPress(DataColumnBase, RowColumnIndex, KeyPressEventArgs)
Occurs when the key is pressed while the cell has focus.
Declaration
protected override void OnKeyPress(DataColumnBase dataColumn, RowColumnIndex rowColumnIndex, KeyPressEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
DataColumnBase | dataColumn | The DataColumnBase of the cell. |
RowColumnIndex | rowColumnIndex | The row and column index of the cell. |
System.Windows.Forms.KeyPressEventArgs | e | The System.Windows.Forms.KeyEventArgs that contains the event data. |
Overrides
OnRender(Graphics, Rectangle, String, CellStyleInfo, DataColumnBase, RowColumnIndex)
Overridden to date time draw the filter row cell renderer.
Declaration
protected override void OnRender(Graphics paint, Rectangle cellRect, string cellValue, CellStyleInfo style, DataColumnBase column, RowColumnIndex rowColumnIndex)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | paint | The Graphics of the control. |
System.Drawing.Rectangle | cellRect | The Bounds of the control. |
System.String | cellValue | The cell value to be displayed. |
CellStyleInfo | style | The cell style of the filter row. |
DataColumnBase | column | The DataColumnBase of the corresponding cell. |
RowColumnIndex | rowColumnIndex | The row column index of the cell. |
Overrides
OnUnwireEditUIElement(SfDateTimeEdit)
Overridden to unwire the edit element.
Declaration
protected override void OnUnwireEditUIElement(SfDateTimeEdit uiElement)
Parameters
Type | Name | Description |
---|---|---|
SfDateTimeEdit | uiElement | The SfDateTimeEdit control. |
Overrides
OnWireEditUIElement(SfDateTimeEdit)
Overridden to wire the value changed event of the edit element.
Declaration
protected override void OnWireEditUIElement(SfDateTimeEdit uiElement)
Parameters
Type | Name | Description |
---|---|---|
SfDateTimeEdit | uiElement | The SfDateTimeEdit control. |