Class GridCellDataTemplateModel
A cell model for the GridCellDataTemplateRenderer.
Inheritance
System.Object
GridCellDataTemplateModel
Implements
System.IDisposable
Inherited Members
Namespace: Syncfusion.Windows.Controls.Grid
Assembly: Syncfusion.Grid.Wpf.dll
Syntax
public class GridCellDataTemplateModel : GridCellModel<GridCellDataTemplateRenderer>, IDisposable
Constructors
GridCellDataTemplateModel()
Declaration
public GridCellDataTemplateModel()
Methods
CalculatePreferredCellSize(Int32, Int32, GridStyleInfo, GridQueryBounds)
Calculates the preferred size of the cell based on its content, including cell template.
Declaration
public override Size CalculatePreferredCellSize(int rowIndex, int colIndex, GridStyleInfo style, GridQueryBounds queryBounds)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | rowIndex | Cell row index. |
System.Int32 | colIndex | Cell column index. |
GridStyleInfo | style | Cell style information. |
GridQueryBounds | queryBounds | Graphical bounds. |
Returns
Type | Description |
---|---|
System.Windows.Size | the optimal size of the cell. |
Overrides
Implements
System.IDisposable