groupingSavetry
This commit is contained in:
parent
8dc00e0383
commit
b1d35c865b
@ -228,8 +228,8 @@ Public Class frmMain
|
|||||||
Return False
|
Return False
|
||||||
End Try
|
End Try
|
||||||
End Function
|
End Function
|
||||||
Private Function GetXML_LayoutName()
|
Private Function GetXML_OverviewLayoutName()
|
||||||
Dim Filename As String = String.Format("GridViewOverview_UserLayout_{0}.xml", GRID_LOAD_TYPE)
|
Dim Filename As String = String.Format("DevExpressGridViewOverview_UserLayout_{0}.xml", GRID_LOAD_TYPE)
|
||||||
Return System.IO.Path.Combine(Application.UserAppDataPath(), Filename)
|
Return System.IO.Path.Combine(Application.UserAppDataPath(), Filename)
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
@ -238,7 +238,7 @@ Public Class frmMain
|
|||||||
Exit Sub
|
Exit Sub
|
||||||
End If
|
End If
|
||||||
Try
|
Try
|
||||||
Dim xml As String = GetXML_LayoutName()
|
Dim xml As String = GetXML_OverviewLayoutName()
|
||||||
GridView_Docs.SaveLayoutToXml(xml, OptionsLayoutBase.FullLayout)
|
GridView_Docs.SaveLayoutToXml(xml, OptionsLayoutBase.FullLayout)
|
||||||
Catch ex As Exception
|
Catch ex As Exception
|
||||||
LOGGER.Error(ex)
|
LOGGER.Error(ex)
|
||||||
@ -252,7 +252,7 @@ Public Class frmMain
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
Try
|
Try
|
||||||
Dim oXml As String = GetXML_LayoutName()
|
Dim oXml As String = GetXML_OverviewLayoutName()
|
||||||
GridView_Docs.RestoreLayoutFromXml(oXml, OptionsLayoutBase.FullLayout)
|
GridView_Docs.RestoreLayoutFromXml(oXml, OptionsLayoutBase.FullLayout)
|
||||||
Catch ex As Exception
|
Catch ex As Exception
|
||||||
LOGGER.Error(ex)
|
LOGGER.Error(ex)
|
||||||
@ -262,7 +262,7 @@ Public Class frmMain
|
|||||||
|
|
||||||
Private Sub ResetLayout()
|
Private Sub ResetLayout()
|
||||||
Try
|
Try
|
||||||
Dim xml As String = GetXML_LayoutName()
|
Dim xml As String = GetXML_OverviewLayoutName()
|
||||||
IO.File.Delete(xml)
|
IO.File.Delete(xml)
|
||||||
|
|
||||||
GridView_Docs.Columns.Clear()
|
GridView_Docs.Columns.Clear()
|
||||||
@ -754,7 +754,7 @@ Public Class frmMain
|
|||||||
Next
|
Next
|
||||||
|
|
||||||
'GridView_Docs.OptionsBehavior.AutoExpandAllGroups = False
|
'GridView_Docs.OptionsBehavior.AutoExpandAllGroups = False
|
||||||
GridView_Docs.OptionsView.ShowGroupedColumns = False
|
'GridView_Docs.OptionsView.ShowGroupedColumns = False
|
||||||
Catch ex As Exception
|
Catch ex As Exception
|
||||||
LOGGER.Error(ex)
|
LOGGER.Error(ex)
|
||||||
LOGGER.Info("Unexpected Error in Formatting Grid: " & ex.Message)
|
LOGGER.Info("Unexpected Error in Formatting Grid: " & ex.Message)
|
||||||
@ -1238,8 +1238,8 @@ Public Class frmMain
|
|||||||
RestoreLayout()
|
RestoreLayout()
|
||||||
|
|
||||||
Try
|
Try
|
||||||
GridView_Docs.OptionsBehavior.AutoExpandAllGroups = False
|
'GridView_Docs.OptionsBehavior.AutoExpandAllGroups = False
|
||||||
GridView_Docs.OptionsView.ShowGroupedColumns = False
|
'GridView_Docs.OptionsView.ShowGroupedColumns = False
|
||||||
GridView_Docs.OptionsView.ShowGroupPanel = False
|
GridView_Docs.OptionsView.ShowGroupPanel = False
|
||||||
Dim oindex As Integer = 0
|
Dim oindex As Integer = 0
|
||||||
If Not IsNothing(DTGRID_GROUPS) Then
|
If Not IsNothing(DTGRID_GROUPS) Then
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user