Class GridFilterByDisplayMemberCellRenderer
Implements renderer for FilterByDisplayMember cell.
Inheritance
System.Object
GridFilterByDisplayMemberCellRenderer
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Syncfusion.GridHelperClasses
Assembly: Syncfusion.GridHelperClasses.Windows.dll
Syntax
public class GridFilterByDisplayMemberCellRenderer : GridTableFilterBarCellRenderer, IQueryFocusInside, IGridDropDownCell, IPopupParent, IPopupItem, IDisposable
Constructors
GridFilterByDisplayMemberCellRenderer(GridControlBase, GridCellModelBase)
Constructor for GridFilterByDisplayMemberCellRenderer.
Declaration
public GridFilterByDisplayMemberCellRenderer(GridControlBase grid, GridCellModelBase cellModel)
Parameters
Type | Name | Description |
---|---|---|
GridControlBase | grid | The grid control. |
GridCellModelBase | cellModel | The cell model. |
Properties
ControlText
Gets or sets the active text that is displayed on the cell.
Declaration
public override string ControlText { get; set; }
Property Value
Type |
---|
System.String |
Overrides
Methods
GetFilterBarDisplayMemberText(GridStyleInfo)
Determines the text from record filter criteria that should be displayed in filterbar cell.
Declaration
public string GetFilterBarDisplayMemberText(GridStyleInfo style)
Parameters
Type | Name | Description |
---|---|---|
GridStyleInfo | style | Cell style information. |
Returns
Type | Description |
---|---|
System.String | FilterBar DisplayMember Text. |
ListBoxMouseUp(Object, MouseEventArgs)
Overridden to filter the grid on clicking the drop down item.
Declaration
protected override void ListBoxMouseUp(object sender, MouseEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Object | sender | The source control. |
System.Windows.Forms.MouseEventArgs | e | The System.Windows.Forms.MouseEventArgs that contains the event data. |
Overrides
OnDraw(Graphics, Rectangle, Int32, Int32, GridStyleInfo)
Overridden to set the filterbar cell value based on the filtered value.
Declaration
protected override void OnDraw(Graphics g, Rectangle clientRectangle, int rowIndex, int colIndex, GridStyleInfo style)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | The System.Drawing.Graphics. |
System.Drawing.Rectangle | clientRectangle | The rectangle of a cell. |
System.Int32 | rowIndex | Row index of a cell. |
System.Int32 | colIndex | Column index of a cell. |
GridStyleInfo | style | Cell style. |
Overrides
Implements
System.IDisposable