Hi Everyone,
Already i have done grid to excel export but now i need to change the cell backcolor or cell color with user defined values.did anyone pass through this.
Please share the code guys or your ideas
Cheers
Narasimman
[WINFORM] Grid to excel export with user defined cell formatting (cell color)
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Suthish NairRank #93 · 22.6K pointsPosted Jan 23, 2011, 12:10 AM EST
narasimman g110 pointsPosted Jan 23, 2011, 5:05 AM EST
Already i have done with excel creation!!! need to format the cells !!!! please look my exisiting thread for excel creation
http://www.c-sharpcorner.com/Forums/ShowMessages.aspx?ThreadID=103625
Suthish NairRank #93 · 22.6K pointsPosted Jan 24, 2011, 1:09 AM EST
narasimman g110 pointsPosted Jan 26, 2011, 6:09 PM EST
thanks for the post
Already i have done the cell text color using below property.
xlWorkSheet.Application.ActiveCell.Font.ColorIndex = 30;
but ur code snippet is pure and clean
I need to change the cell background color:( stickin with it!! any helppppp
cheers