2016-08-22 46 views
0

我想使用ExcelExporter導出爲Excel時,將主樂隊的子樂隊移到最左邊。UltraGrid兒童樂隊

現在,所有的子樂隊都向右移動一列。

此外,每個兒童樂隊在其上方和下方都有一個空白行。我也想刪除它們。

這是可能的嗎?

感謝

enter image description here

回答

2
Private Sub UltraGridExcelExporter1_BeginExport(sender As System.Object, e As Infragistics.Win.UltraWinGrid.ExcelExport.BeginExportEventArgs) Handles UltraGridExcelExporter1.BeginExport 
    DirectCast(sender, UltraWinGrid.ExcelExport.UltraGridExcelExporter).BandSpacing = UltraWinGrid.ExcelExport.BandSpacing.None 

    For Each band As UltraWinGrid.UltraGridBand In e.Layout.Bands 
     band.Indentation = 0 
    Next 

End Sub