Skip to main content

DataControlBase.CurrentItem Property

Gets or sets the currently focused data row.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v22.2.Core.dll

NuGet Package: DevExpress.Wpf.Grid.Core

Declaration

public object CurrentItem { get; set; }

Property Value

Type Description
Object

A Object specifying the focused row.

Remarks

When Multiple Row Selection mode is disabled, the CurrentItem and DataControlBase.SelectedItem properties refer to the focused item.

When Multiple Row Selection mode is enabled, the CurrentItem property refers to the latest selected item (focused item), and the DataControlBase.SelectedItem property refers to the item that was selected first (the first item in the DataControlBase.SelectedItems collection).

The following code snippets (auto-collected from DevExpress Examples) contain references to the CurrentItem property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also