Skip to main content
Tab

ASPxGridLookup.KeyFieldName Property

Gets or sets the name of the data source key field.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.1.dll

NuGet Package: DevExpress.Web

Declaration

[DefaultValue("")]
public string KeyFieldName { get; set; }

Property Value

Type Default Description
String String.Empty

A String value that specifies the name of the data source key field.

Remarks

Setting this property is required for the editor to properly process item selection, sorting, paging, and other operations.

Limitations

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the KeyFieldName 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