ActiveDataItem Property

Gets/sets the active item in the DataSource and synchronizes itself with the ActiveRecord property./>
Public Property ActiveDataItem As Object
public object ActiveDataItem {get; set;}

If the ActiveRecord is set to a record that is not a DataRecord then this property will return null.

To synchronize the selection and activation of 2 XamDataGrids bind the ActiveDataItem and SelectedDataItems properties of one to the other and set the SelectedDataItemsScope property on both grids.

Note: just like SelectedDataItems this property binds 2-way by default.


Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also