Back to Devexpress

LayoutUpgradeEventArgs.PreviousVersion Property

corelibraries-devexpress-dot-utils-dot-layoutupgradeeventargs.md

latest3.6 KB
Original Source

LayoutUpgradeEventArgs.PreviousVersion Property

Returns the textual representation of the previous layout version.

Namespace : DevExpress.Utils

Assembly : DevExpress.Data.v25.2.dll

NuGet Package : DevExpress.Data

Declaration

csharp
public string PreviousVersion { get; }
vb
Public ReadOnly Property PreviousVersion As String

Property Value

TypeDescription
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

csharp
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

csharp
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

vb
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

vb
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

LayoutUpgradeEventArgs Class

LayoutUpgradeEventArgs Members

DevExpress.Utils Namespace