Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
240
Exception when i try to Export a grid with 42 column
posted

Hi

When I try  to export a grid with 42 columns (grid.DisplayLayout.Bands[0].Columns.Count == 42) i obtain this exception:

System.ArgumentOutOfRangeException

256 is not a valid column index in the current format. The value must be between 0 and 255.
Nome parametro: columnIndex
Valore effettivo: 256.

Where can be the problem?

Thank in advance

  • 240
    posted
    This is the code with which I export the grid:

    var ultraGridExcelExporter1 = new UltraGridExcelExporter(components);
    ultraGridExcelExporter1.Export(grid, pathTempFile);
    ultraGridExcelExporter1.Dispose();