DataGrid 滚动特定的行或者列

来源:互联网 发布:测bpm软件 编辑:程序博客网 时间:2024/06/06 20:21
DataGrid 滚动特定的行或者列。

DataGrid.ScrollIntoView Method (Object, DataGridColumn)

  • .NET Framework 4.5
  • Silverlight

Scrolls the DataGrid vertically and horizontally to display a cell for the specified data item and column.

Namespace: System.Windows.Controls
Assembly: PresentationFramework (in PresentationFramework.dll)
Syntax

C#
C++
F#
VB
Copy
public void ScrollIntoView(        Object item,        DataGridColumn column)

Parameters

item
Type: System.Object
The data item to bring into view.
column
Type: System.Windows.Controls.DataGridColumn
The column to bring into view.
Remarks

If column is null, only a vertical scroll is performed. If item is null, only a horizontal scroll is performed.

原创粉丝点击