HI Mudassar,
Thanks For the reply.
my GridView is very Complicated we use differtent colors in each row.
i downloded the Itext Sharp 5.0 which has FactoryProperties.cs and inserted the below Code.
else if (key.Equals(Markup.CSS_KEY_BGCOLOR)){
Color c = Markup.DecodeColor(prop[key]);if (c != null){
int hh = c.ToArgb() & 0xffffff;
String hs = "#" + hh.ToString("X06", NumberFormatInfo.InvariantInfo);
h["bgcolor"] = hs;}}
as mentioned in Hameng.net
but this gave me the error
Cannot implicitly convert type 'iTextSharp.text.BaseColor' to 'System.Drawing.Color'
at line
Color c = Markup.DecodeColor(prop[key]);
HOW TO fIX THIS ERROR
Thanks, Harin