Xceed DataGrid for WPF v7.2 Documentation
SetCanScrollHorizontally Method


Xceed.Wpf.DataGrid Assembly > Xceed.Wpf.DataGrid.Views Namespace > TableView Class : SetCanScrollHorizontally Method

The dependency object to which the attached property is written.

true if the item can scroll with the content of a grid; false otherwise (the item will stay fix).
Sets a value indicating whether the item to which the property is attached can scroll with the content of a grid.
Syntax
'Declaration
 
Public Shared Sub SetCanScrollHorizontally( _

   ByVal obj As DependencyObject, _

   ByVal value As Boolean _

) 
'Usage
 
Dim obj As DependencyObject

Dim value As Boolean

 

TableView.SetCanScrollHorizontally(obj, value)
public static void SetCanScrollHorizontally( 

   DependencyObject obj,

   bool value

)

Parameters

obj

The dependency object to which the attached property is written.

value
true if the item can scroll with the content of a grid; false otherwise (the item will stay fix).
Remarks

The CanScrollHorizontally attached property can be set on elements (e.g., GroupByControl and GroupHeaderControl) to prevent them from being scrolled horizontally. If set on a row, it will be ignored. The CanScrollHorizontally attached property should not be set on the panel (FixedCellPanel) used to manage the data rows in table view since this panel will automatically handle fixing the appropriate elements (cells).

Using this property will result in the RenderTransform property being modified. In order to use RenderTransform, two solutions are available:

1- Place the element on which the CanScrollHorizontally property has been set in a panel, which will have the desired RenderTransform.


2- Place the element which has the desired RenderTransform in a simple Decorator that will set the CanScrollHorizontally property to false.

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

TableView Class
TableView Members