Class FilterRowMultiSelectComboBoxCellRenderer
Represents a class that used to draw the multi-select filter row cell.
Inheritance
Inherited Members
Namespace: Syncfusion.WinForms.DataGrid.RowFilter
Assembly: Syncfusion.SfDataGrid.WinForms.dll
Syntax
public class FilterRowMultiSelectComboBoxCellRenderer : FilterRowCellRenderer<SfComboBox>, IGridCellRenderer<TableControl>, IDisposable, IFilterRowRenderer
Constructors
FilterRowMultiSelectComboBoxCellRenderer()
Initializes a new instance of the FilterRowMultiSelectComboBoxCellRenderer class.
Declaration
public FilterRowMultiSelectComboBoxCellRenderer()
Methods
CanValidate()
Overridden to specify the validation on the numeric filter row cell.
Declaration
public override bool CanValidate()
Returns
Type | Description |
---|---|
System.Boolean | Returns true, when the validation needs to be taken, otherwise return false. |
Overrides
GetControlValue()
Overridden to get the selected values of the checked list box cell renderer.
Declaration
public override object GetControlValue()
Returns
Type | Description |
---|---|
System.Object | Returns the checked items collection. |
Overrides
GetEditorUIElementBounds()
Overridden to gets the bounds of the editor control.
Declaration
protected override Rectangle GetEditorUIElementBounds()
Returns
Type | Description |
---|---|
System.Drawing.Rectangle | Returns the bound rectangle for the editor control. |
Overrides
OnInitializeEditElement(DataColumnBase, RowColumnIndex, SfComboBox)
Overridden to initialize the edit element of the MulitSelect renderer.
Declaration
protected override void OnInitializeEditElement(DataColumnBase column, RowColumnIndex rowColumnIndex, SfComboBox uiElement)
Parameters
Type | Name | Description |
---|---|---|
DataColumnBase | column | The DataColumnBase of the cell. |
RowColumnIndex | rowColumnIndex | The row column index of the cell. |
SfComboBox | uiElement | The edit 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
OnRender(Graphics, Rectangle, String, CellStyleInfo, DataColumnBase, RowColumnIndex)
Overridden to draw the MultiSelect 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(SfComboBox)
Overridden to unwire the events of the edit element.
Declaration
protected override void OnUnwireEditUIElement(SfComboBox uiElement)
Parameters
Type | Name | Description |
---|---|---|
SfComboBox | uiElement | The object that needs to be unwired. |
Overrides
OnWireEditUIElement(SfComboBox)
Overridden to wire the value changed event of the edit element.
Declaration
protected override void OnWireEditUIElement(SfComboBox uiElement)
Parameters
Type | Name | Description |
---|---|---|
SfComboBox | uiElement | The SfDateTimeEdit control. |