This project is read-only.

Possible bug exporting to csv with merged cells

Aug 15, 2009 at 5:26 PM
Edited Aug 15, 2009 at 5:37 PM

I used the following code (C++) to export to csv a grid where the title in cell 0,0 is merged across all columns in row 0. 

  SourceGrid::Exporter::CSV^ csv = gcnew SourceGrid::Exporter::CSV;

  csv->Export(this->grdHoursWorked, writer);

where the title in cell 0,0 is merged across all columns in row 0 using ColumnSpan as follows...


  myHWGrid[0, 0]->ColumnSpan = myHWGrid->ColumnsCount;


The result is that the contents of cell 0,0 are replicated across all cells in row 0.  As a work around, I expect I can undo the merge, export the file, and then redo the merge.  btw, IMHO this is an extremely high value project.  i will be looking for ways to help.  Thanks sincerely. 


Sep 3, 2009 at 9:54 AM
Edited Sep 3, 2009 at 9:56 AM

What result do you expect instead?

After all, CSV is a tabular data, it does not support spanning.

We could also make that exporting into CSV the value of the first cell that is merged is written, while other cells (which are spanned) contain null.

Sep 4, 2009 at 4:11 PM
just as you suggest...A1 filled with contents and rest blank or null.
You have a fine fine product.

On Thu, Sep 3, 2009 at 3:54 AM,
dariusdamalakas<> wrote:
> From: dariusdamalakas
> What result do you expect?
> Read the full discussion online.
> To add a post to this discussion, reply to this email
> ([email removed])
> To start a new discussion for this project, email
> [email removed]
> You are receiving this email because you subscribed to this discussion on
> CodePlex. You can unsubscribe on
> Please note: Images and attachments will be removed from emails. Any posts
> to this discussion will also be available online at

Lance and Suzanne McKinzie
140 Fox Run
Greenville, KY 42345

Energy Xpress Enterprises, Inc.
45 Tiger Drive
Beechmont, KY 42323

270-476-8874 office
270-476-8874 fax
270-608-1243 mobile
[email removed]
Sep 6, 2009 at 7:24 AM

Thank you.


Could you please file a new feature request?