Class GridRowHeaderCellRenderer
Represents the class that used for drawing the row header cell.
Inherited Members
Namespace: Syncfusion.WinForms.DataGrid.Renderers
Assembly: Syncfusion.SfDataGrid.WinForms.dll
Syntax
public class GridRowHeaderCellRenderer : GridCellRendererBase, IGridCellRenderer<TableControl>, IDisposable
Constructors
GridRowHeaderCellRenderer()
Initializes a new instance of the GridRowHeaderCellRenderer class.
Declaration
public GridRowHeaderCellRenderer()
Methods
DrawAddNewRowIcon(Graphics, Rectangle, Bitmap)
Draws the add new row icon in row header cell of the add new row.
Declaration
protected virtual void DrawAddNewRowIcon(Graphics g, Rectangle rect, Bitmap icon)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | The System.Drawing.Graphics that used to draw the add new row icon. |
System.Drawing.Rectangle | rect | The rectangle region that needs to draw the add new row icon. |
System.Drawing.Bitmap | icon | The add new row icon. |
Remarks
The add new row icon draws only when current cell not in add new row.
DrawSelectionMarker(Graphics, Rectangle)
Draw the selection cell marker on the row header of the current cell.
Declaration
protected virtual void DrawSelectionMarker(Graphics graphics, Rectangle rect)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | graphics | The System.Drawing.Graphics that used to draw the row header cell. |
System.Drawing.Rectangle | rect | The bounds of the row header cell. |
OnMouseMove(DataColumnBase, RowColumnIndex, MouseEventArgs)
Occurs when the mouse moves on the cell.
Declaration
protected override void OnMouseMove(DataColumnBase dataColumn, RowColumnIndex rowColumnIndex, MouseEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
DataColumnBase | dataColumn | The DataColumnBase of the cell. |
RowColumnIndex | rowColumnIndex | RowColumnIndex of the cell. |
System.Windows.Forms.MouseEventArgs | e | The System.Windows.Forms.MouseEventArgs contains the event data. |
Overrides
OnRender(Graphics, Rectangle, String, CellStyleInfo, DataColumnBase, RowColumnIndex)
Overridden to draw the row header 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 that used to draw the row header cell. |
System.Drawing.Rectangle | cellRect | The bounds of the row header cell. |
System.String | cellValue | The value of the row header cell. |
CellStyleInfo | style | The CellStyleInfo of the row header cell. |
DataColumnBase | column | The DataColumnBase of the row header cell. |
RowColumnIndex | rowColumnIndex | The row and column index of the cell. |