Export (0) Print
Expand All

DataGrid.AreRowDetailsFrozen Property

Gets or sets a value that indicates whether the row details sections remain fixed at the width of the display area or can scroll horizontally.

Namespace:  System.Windows.Controls
Assembly:  System.Windows.Controls.Data (in System.Windows.Controls.Data.dll)

Public Property AreRowDetailsFrozen As Boolean
<sdk:DataGrid AreRowDetailsFrozen="bool"/>

Property Value

Type: System.Boolean
true if the row details sections are prevented from scrolling horizontally; otherwise, false. The default is false.

Dependency property identifier field: AreRowDetailsFrozenProperty

Set this property to true to make sure that the contents of the row details sections are never scrolled out of view horizontally.

The following code example demonstrates how to set the AreRowDetailsFrozen property in code. This example is part of a larger example available in the How to: Display and Configure Row Details in the DataGrid Control topic.

'  Freeze the row details if the check box is checked.
Private Sub cbFreezeRowDetails_Changed(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs)
    Dim cb As CheckBox = sender

    If Me.dataGrid1 IsNot Nothing Then
        Me.dataGrid1.AreRowDetailsFrozen = cb.IsChecked
    End If
End Sub


Supported in: 5, 4, 3

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

© 2014 Microsoft