Hello!
I am trying to export the content in my UltraWinGrid but I have some problem with the cell borders.
At first, all of the excel cells that as exported from the grid ended up without borders. I then found a property
called WorkSheetCellFormat of the excel cell. So in the CellExported event of the UltraGridExcelExporter, i changed the formatting to exclude BorderFormatting.
That helped a lot but I still have some rows left that doesn't have borders.
Does anyone now how to fix these?
Private Sub ugExcelExport_CellExported(sender As Object, e As Infragistics.Win.UltraWinGrid.ExcelExport.CellExportedEventArgs)
Try
e.CurrentWorksheet.Rows(e.CurrentRowIndex).Cells(e.CurrentColumnIndex).CellFormat.FormatOptions =
WorksheetCellFormatOptions.ApplyAlignmentFormatting + WorksheetCellFormatOptions.ApplyFontFormatting + WorksheetCellFormatOptions.ApplyNumberFormatting
Catch ex As Exception
End Try
End Sub
Hi Zlatan,
By default, the cells will export with borders. It appears that this issue is occurring on specific cells in your worksheet. It looks like the second row after an item is expanded is affected. I will need to take a closer look at your code in order to solve this. Is it possible for you to send a reproduction sample that I can look into? If not, are you able to send your exporting code?
Please let me know if you can provide this information.