Back to Devexpress

TreeListLookUpEdit.GetSelectedDataRow() Method

windowsforms-devexpress-dot-xtraeditors-dot-treelistlookupedit-7cec1c76.md

latest2.1 KB
Original Source

TreeListLookUpEdit.GetSelectedDataRow() Method

Returns a data source row corresponding to the currently selected edit value.

Namespace : DevExpress.XtraEditors

Assembly : DevExpress.XtraTreeList.v25.2.dll

NuGet Packages : DevExpress.Win.Navigation, DevExpress.Win.TreeList

Declaration

csharp
public override object GetSelectedDataRow()
vb
Public Overrides Function GetSelectedDataRow As Object

Returns

TypeDescription
Object

An object that represents a data source row corresponding to the currently selected edit value.

|

Remarks

The currently selected value is specified by the editor’s EditValue property. The GetSelectedDataRow method returns the data source row that contains this edit value in the key field, specified by the RepositoryItemLookUpEditBase.ValueMember property.

To get access to other data source rows by their key field values, use the RepositoryItemTreeListLookUpEdit.GetRowByKeyValue method.

See Also

EditValue

GetRowByKeyValue(Object)

TreeListLookUpEdit Class

TreeListLookUpEdit Members

DevExpress.XtraEditors Namespace