corelibraries-devexpress-dot-utils-dot-layoutupgradeeventargs.md
Returns the textual representation of the previous layout version.
Namespace : DevExpress.Utils
Assembly : DevExpress.Data.v25.2.dll
NuGet Package : DevExpress.Data
public string PreviousVersion { get; }
Public ReadOnly Property PreviousVersion As String
| Type | Description |
|---|---|
| String |
A String representing the previous version of the layout.
|
The following code snippets (auto-collected from DevExpress Examples) contain references to the PreviousVersion 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.
aspxpivotgrid-layout-upgrade-event/CS/ASPxPivotGridLayoutUpgradeEvent/Default.aspx.cs#L41
protected void ASPxPivotGridNew_LayoutUpgrade(object sender, LayoutUpgradeEventArgs e) {
if(e.PreviousVersion == "1.0") {
var newField = new PivotGridField() {
pivot-grid-for-winforms-layout-upgrade/CS/WinPivotUpgradeLayout/Form1.cs#L55
private void pivotGridControlNew_LayoutUpgrade(object sender, DevExpress.Utils.LayoutUpgradeEventArgs e){
if (e.PreviousVersion == "1.0"){
var newField = new PivotGridField(){
aspxpivotgrid-layout-upgrade-event/VB/ASPxPivotGridLayoutUpgradeEvent/Default.aspx.vb#L42
Protected Sub ASPxPivotGridNew_LayoutUpgrade(ByVal sender As Object, ByVal e As LayoutUpgradeEventArgs)
If e.PreviousVersion = "1.0" Then
Dim newField = New PivotGridField() With {
pivot-grid-for-winforms-layout-upgrade/VB/WinPivotUpgradeLayout/Form1.vb#L59
Private Sub pivotGridControlNew_LayoutUpgrade(ByVal sender As Object, ByVal e As DevExpress.Utils.LayoutUpgradeEventArgs)
If Equals(e.PreviousVersion, "1.0") Then
Dim newField = New PivotGridField() With {.FieldName = "Quantity", .Caption = "Quantity", .Name = "fieldQuantity", .Area = PivotArea.DataArea}
See Also