Class FilterRowTextBoxCellRenderer
Represents the class that is used for drawing the text box FilterRow cell.
Inheritance
Inherited Members
Namespace: Syncfusion.WinForms.DataGrid.RowFilter
Assembly: Syncfusion.SfDataGrid.WinForms.dll
Syntax
public class FilterRowTextBoxCellRenderer : FilterRowCellRenderer<TextBox>, IGridCellRenderer<TableControl>, IDisposable, IFilterRowRenderer
Constructors
FilterRowTextBoxCellRenderer()
Initializes a new instance of the FilterRowTextBoxCellRenderer class.
Declaration
public FilterRowTextBoxCellRenderer()
Methods
CanValidate()
Overridden to update the validation state of the renderer.
Declaration
public override bool CanValidate()
Returns
Type | Description |
---|---|
System.Boolean | Returns true, if the content needs to be validated; otherwise return false. |
Overrides
OnEditingComplete(DataColumnBase, TextBox)
Overridden to apply the filtering on the editing complete.
Declaration
protected override void OnEditingComplete(DataColumnBase column, TextBox currentRendererElement)
Parameters
Type | Name | Description |
---|---|---|
DataColumnBase | column | The DataColumnBase of the cell. |
System.Windows.Forms.TextBox | currentRendererElement | The edit element of the current renderer. |
Overrides
OnInitializeEditElement(DataColumnBase, RowColumnIndex, TextBox)
Initializes the edit element of the filter row cell.
Declaration
protected override void OnInitializeEditElement(DataColumnBase column, RowColumnIndex rowColumnIndex, TextBox uiElement)
Parameters
Type | Name | Description |
---|---|---|
DataColumnBase | column | The column base of the given row column index that needs to initialize the edit element. |
RowColumnIndex | rowColumnIndex | The row column index of the edit element. |
System.Windows.Forms.TextBox | uiElement | The editor element that needs to be initialized. |
Overrides
OnKeyDown(DataColumnBase, RowColumnIndex, KeyEventArgs)
Overridden to update the key down event to the NavigationController.
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. |