Skip to main content
A newer version of this page is available. .
Tab

ASPxCardView.GetCardValuesByKeyValue(Object, String[]) Method

Returns the specified card’s values displayed within the specified columns (fields).

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v19.1.dll

Declaration

public object GetCardValuesByKeyValue(
    object keyValue,
    params string[] fieldNames
)

Parameters

Name Type Description
keyValue Object

An object that uniquely identifies the card.

fieldNames String[]

The names of data source fields whose values are returned.

Returns

Type Description
Object

An object that contains the card values displayed within the specified columns (fields).

Example

The code sample below demonstrates how you can prohibit a user from editing cards containing information unrelated to the Sales department.

string UserDepartment = "Sales";
...
protected void ASPxCardView1_StartCardEditing(object sender, DevExpress.Web.ASPxStartCardEditingEventArgs e)
{
    if (ASPxCardView1.GetCardValuesByKeyValue(e.EditingKeyValue, "Department").ToString() != UserDepartment) {
    e.Cancel = true;
}

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the GetCardValuesByKeyValue(Object, String[]) method.

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