aspnet-devexpress-dot-web-dot-aspxspinedit-4c53db0c.md
Gets or sets the editor’s value.
Namespace : DevExpress.Web
Assembly : DevExpress.Web.v25.2.dll
NuGet Package : DevExpress.Web
public override object Value { get; set; }
Public Overrides Property Value As Object
| Type | Description |
|---|---|
| Object |
A Object value representing the editor’s value.
|
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
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
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