Xceed DataGrid for WPF v7.2 Documentation
GetFittedWidth Method (MergedColumn)


Xceed.Wpf.DataGrid Assembly > Xceed.Wpf.DataGrid Namespace > MergedColumn Class : GetFittedWidth Method
Retrieves the fitted width of the column, in device-independent units (1/96th inch per unit).
Syntax
'Declaration
 
Public Overrides Function GetFittedWidth() As Double
'Usage
 
Dim instance As MergedColumn

Dim value As Double

 

value = instance.GetFittedWidth()
public override double GetFittedWidth()

Return Value

The fitted width of the column, in device-independent units (1/96th inch per unit).
Remarks
The fitted width of a column represents the width necessary to display the entire content of the column's cells on one line. Only the items that are displayed in a grid's viewport—the "realized" items—will be used when calculating the fitted width of a column.
Requirements

Target Platforms: Windows 11, Windows, 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

MergedColumn Class
MergedColumn Members
Base Implementation in GetFittedWidth