Back to Devexpress

ASPxListEdit.ValueField Property

aspnet-devexpress-dot-web-dot-aspxlistedit-4eb38344.md

latest2.8 KB
Original Source

ASPxListEdit.ValueField Property

Gets or sets the data source field that provides values for the editor’s items.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
[DefaultValue("")]
public string ValueField { get; set; }
vb
<DefaultValue("")>
Public Property ValueField As String

Property Value

TypeDefaultDescription
StringString.Empty

A string value that specifies the name of the data source field from which the editor obtains item values.

|

Remarks

This property is a wrapper of the ListEditProperties.ValueField property.

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

xaf-how-to-display-a-collection-property-as-a-checked-list-box/CS/DXExample.Module.Web/WebCheckedListBoxPropertyEditor.cs#L45

csharp
control.TextField = classInfo.DefaultProperty;
control.ValueField = classInfo.KeyProperty;
control.ValueType = classInfo.TypeInfo.KeyMember.MemberType;

xaf-how-to-display-a-collection-property-as-a-checked-list-box/VB/DXExample.Module.Web/WebCheckedListBoxPropertyEditor.vb#L45

vb
control.TextField = classInfo.DefaultProperty
control.ValueField = classInfo.KeyProperty
control.ValueType = classInfo.TypeInfo.KeyMember.MemberType

See Also

ASPxListEdit Class

ASPxListEdit Members

DevExpress.Web Namespace