Question How to Retain datagridview cell backcolor and forecolor in excel after exporting from

chandrubngit

Member
Joined
Jul 30, 2008
Messages
9
Programming Experience
Beginner
i've a datagridview control populated with records from database.
i've formatted certain cells of datagridview according to a condition.
(i mean i've set the fore color and back color of cell).
But when i export these datagridview contents to excel 2003, no cell colors will be
appearing.pls help me.

i'm developing desktop application with vb.net 2008 and excel 2003.
thanks in advance
 
When you're itterating through your dataset check the aforementioned condition and set the interior color of the range if it meets the condition.

You should change the framework you've listed from 1.1 to 3.5 so you get correct information in future posts.
 
Back
Top