Wed May 30, 2012 8:53 am
Hi Zac,
Thanks for your inquiry. I am glad to inform you that Spire.PDF enables users to change the color of the specific cells
with two lines of code:
//set color of certain cells
grid.Rows[0].Cells[1].Style.BackgroundBrush = PdfBrushes.Green;
grid.Rows[0].Cells[3].Style.BackgroundBrush = PdfBrushes.Red;
I also attach a live demo to provide more detail relate to this issue. Please have a check.
Though this works smoothly on my side, yet if there is any doubt or any new problem that troubles you, please feel
free to contact me at anytime, I will try my best to help you to solve it as soon as possible. Have a nice day.
Best Regards
Eric
e-iceblue support
Login to view the files attached to this post.