Skip to main content

DataControlBase.CurrentItem Property

Gets or sets the currently focused data row.

Namespace: DevExpress.Xpf.Grid

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

NuGet Package: DevExpress.Wpf.Grid.Core

Declaration

public object CurrentItem { get; set; }

Property Value

Type Description
Object

An Object that specifies 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 currently selected item (the focused item), and the DataControlBase.SelectedItem property refers to the item that was selected first (the first item in the DataControlBase.SelectedItems collection).

Refer to the following help topic for more information: Focus and Navigation.

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