GridLookupExtension.GetSelectedValues<T>(String) Method

Returns an array of the GridLookup’s selected row values.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v21.1.dll

Declaration

public static T[] GetSelectedValues<T>(
    string name
)

Parameters

Name Type Description
name String

A string specifying the editor name.

Type Parameters

Name
T

Returns

Type Description
T[]

An array that contains zero or more T[] objects that are the values of the selected rows.

Remarks

Use the GetSelectedValues<T> method to obtain an array of values of the selected rows within a GridLookup.

Note

The GetSelectedValues<T> method uses the field specified in the KeyFieldName property and returns values from this field.

See Also