Xceed DataGrid for Silverlight Documentation
MaxColumnWidth Property


Gets or sets the default maximum column width.
Syntax
'Declaration
 
Public Property MaxColumnWidth As Double
'Usage
 
Dim instance As DataGridControl
Dim value As Double
 
instance.MaxColumnWidth = value
 
value = instance.MaxColumnWidth
public double MaxColumnWidth {get; set;}

Property Value

A value representing the default maximum column width. By default, Double.PositiveInifinity. Cannot be a negative value.
Remarks

The ColumnWidth, MaxColumnWidth, and MinColumnWidth properties determine the default width, maximum width, and minimum widths of columns whose own Width, MaxWidth, and MinWidth properties have not been explicitly set.

The values of the MaxColumnWidth/MinColumnWidth and MaxWidth/MinWidth properties are not validated against each other. In the case where the minimums are greater than the maximums, the minimum values will be used.

If a positive but invalid value is assigned to the Width property, the width will be adjusted to match either the maximum or minimum widths. If a negative value is provided, an exception will be thrown. The actual (i.e., normalized) or animated width of a column can be retrieved through its ActualWidth property.

Requirements

Target Platforms: Windows 7, Windows Vista, Windows XP SP3, Windows Server 2008 family

See Also

Reference

DataGridControl Class
DataGridControl Members
ColumnWidth Property
MinColumnWidth Property

Send Feedback