diff --git a/Components/Components/NonVisualComponents/TableComponent.cs b/Components/Components/NonVisualComponents/TableComponent.cs index 49da32b..b05e88e 100644 --- a/Components/Components/NonVisualComponents/TableComponent.cs +++ b/Components/Components/NonVisualComponents/TableComponent.cs @@ -98,7 +98,7 @@ namespace Components.NonVisualComponents worksheet.Cells[2, i] = headers[i - 1]; Excel.Range column = (Excel.Range)worksheet.Columns[i]; - //column.ColumnWidth = columnsWidth[i - 1]; + column.ColumnWidth = columnsWidth[i - 1]; Excel.Range cell = (Excel.Range)worksheet.Cells[2, i]; cell.HorizontalAlignment = Excel.XlHAlign.xlHAlignCenter; @@ -166,7 +166,7 @@ namespace Components.NonVisualComponents if (columnIndex != 0) { - worksheet.Cells[i, columnIndex] = propertyValue; + worksheet.Cells[row, columnIndex] = propertyValue; } } diff --git a/Components/WinForms/FormNonVisualComponents.cs b/Components/WinForms/FormNonVisualComponents.cs index bf49050..f482929 100644 --- a/Components/WinForms/FormNonVisualComponents.cs +++ b/Components/WinForms/FormNonVisualComponents.cs @@ -63,7 +63,7 @@ namespace WinForms }; List columnsWidth = new List() { - 20, 20, 30, 30, 30, 30, 30, 50, 50, 30 + 10, 10, 20, 20, 20, 20, 20, 30, 30, 10 }; List columns = new List()