แก้ไข

แชร์ผ่าน


DataGrid.ScrollIntoView Method

Definition

Scrolls the DataGrid vertically and horizontally to display the specified item.

Overloads

ScrollIntoView(Object)

Scrolls the DataGrid vertically to display the row for the specified data item.

ScrollIntoView(Object, DataGridColumn)

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

ScrollIntoView(Object)

Scrolls the DataGrid vertically to display the row for the specified data item.

public:
 void ScrollIntoView(System::Object ^ item);
public void ScrollIntoView (object item);
member this.ScrollIntoView : obj -> unit
Public Sub ScrollIntoView (item As Object)

Parameters

item
Object

The data item to bring into view.

Exceptions

item is null.

Applies to

ScrollIntoView(Object, DataGridColumn)

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

public:
 void ScrollIntoView(System::Object ^ item, System::Windows::Controls::DataGridColumn ^ column);
public void ScrollIntoView (object item, System.Windows.Controls.DataGridColumn column);
member this.ScrollIntoView : obj * System.Windows.Controls.DataGridColumn -> unit
Public Sub ScrollIntoView (item As Object, column As DataGridColumn)

Parameters

item
Object

The data item to bring into view.

column
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.

Applies to