or
grdRiskClarityReport.Export(stream,
new GridViewExportOptions()
{
Format=
ExportFormat.Html,
ShowColumnHeaders =
true,
ShowColumnFooters =
true,
ShowGroupFooters =
false,
});
private void grdRiskClarityReport_ElementExported(object sender, GridViewElementExportedEventArgs e)
{
if (e.Element == ExportElement.HeaderCell && temp== 0)
{
// if (obj != null)
{
e.Writer.Write(
String.Format(@"<tr><td style=""background-color:#CCC;"" colspan=""{0}"">","dfdfd"));
e.Writer.Write(
String.Format(@"<b>Proposal Name:</b> {0} <br />", "dfdfd")); //need to input properdata
e.Writer.Write(
String.Format(@"<b>Proposal Status:</b> {0} <br />", "dfdfd"));
e.Writer.Write(
"</td></tr>");
temp = 1;
// using the restrict the metadata to the first cell
}
}
}
