Hi Friends.,
Am Exporting Grid View to PDF Using ITextSharp in ITextSharp i Can Change Font Color But i Need to Do in Direct Grid view to pdf in This i need to Change Back Ground or Font Color
I'Ve Used
GridView1.HeaderRow.Cells[i].ControlStyle.Font.Size = 15;
to Change Font Size it's Changing Font Size, but Same as Color Mention Below is Not Working
GridView1.HeaderStyle.BackColor = System.Drawing.Color.Orange;
Without ITextSharp i need to Change Font Color or Background Color in PDF Doc.
With Regards....,
R.V.Rajagopalan
Loading

Saikiran GstPosted Aug 26, 2014, 6:27 AM
As per u r request u may can try this method for exporting gridview to pdf with out using itextsharp
code:-
for (int col = 0; col < GridView1.HeaderRow.Controls.Count; col++)
{
TableCell tc = GridView1.HeaderRow.Cells[col];
tc.Style.Add("color", "#0000FF");
}
Regards
gst saikiran
Rajagopalan R VPosted Aug 26, 2014, 8:04 AM
Thanq For Your Reply Its Working Fine For Me
With Regards......,
R.V.Rajagopalan