DataGrid.ScrollIntoView Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈