Back to Devexpress

ASPxSpinEdit.Value Property

aspnet-devexpress-dot-web-dot-aspxspinedit-4c53db0c.md

latest2.6 KB
Original Source

ASPxSpinEdit.Value Property

Gets or sets the editor’s value.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
public override object Value { get; set; }
vb
Public Overrides Property Value As Object

Property Value

TypeDescription
Object

A Object value representing the editor’s value.

|

Remarks

This property overrides the base ASPxEdit.Value property to implement decimal type specific conversions when setting the editor’s value.

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

asp-net-web-forms-grid-set-edit-form-values/CS/Solution/ServerSide.aspx.cs#L23

csharp
totalEditor.Value = Convert.ToDecimal(unitPriceEditor.Value) * Convert.ToDecimal(unitsInStockEditor.Value);
}

asp-net-web-forms-grid-set-edit-form-values/VB/Solution/ServerSide.aspx.vb#L25

vb
Dim totalEditor As ASPxTextBox = CType(grid.FindEditRowCellTemplateControl(CType(grid.Columns("Total"), GridViewDataColumn), "TotalEditor"), ASPxTextBox)
    totalEditor.Value = Convert.ToDecimal(unitPriceEditor.Value) * Convert.ToDecimal(unitsInStockEditor.Value)
End Sub

See Also

Spin Editor

ASPxSpinEdit Class

ASPxSpinEdit Members

DevExpress.Web Namespace