Class GridSummaryCellRendererBase
Represents the class that used for drawing the summary row.
Inheritance
System.Object
GridSummaryCellRendererBase
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)
System.Object.ToString()
Namespace: Syncfusion.WinForms.DataGrid.Renderers
Assembly: Syncfusion.SfDataGrid.WinForms.dll
Syntax
public class GridSummaryCellRendererBase : GridCellRendererBase, IGridCellRenderer<TableControl>, IDisposable
Constructors
GridSummaryCellRendererBase()
Initializes a new instance of the GridSummaryCellRendererBase class.
Declaration
public GridSummaryCellRendererBase()
Methods
OnDrawCurrentCell(Graphics, SfDataGrid, RowColumnIndex)
Draw the current cell
Declaration
protected override void OnDrawCurrentCell(Graphics graphics, SfDataGrid dataGrid, RowColumnIndex currentCellRowColumnIndex)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | graphics | The System.Drawing.Graphics that used to draw the cell. |
SfDataGrid | dataGrid | The DataGrid. |
RowColumnIndex | currentCellRowColumnIndex | The row column index of the current cell. |
Overrides
OnKeyDown(DataColumnBase, RowColumnIndex, KeyEventArgs)
Occurs when the key is pressed while the cell has focus.
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 summary cell.
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 System.Drawing.Graphics to draw the cell. |
System.Drawing.Rectangle | cellRect | The bounds of the summary cell. |
System.String | cellValue | The value of the cell. |
CellStyleInfo | style | The CellStyleInfo of the cell. |
DataColumnBase | column | The DataColumnBase of the summary cell. |
RowColumnIndex | rowColumnIndex | The row and column index of the cell. |
Overrides
Implements
System.IDisposable