Telerik:Radgridview Export to excel -
i using telerik radgridview
in 1 of reports. have export result excel, using telerik's inbuild exporttoexcel
function export result excel format. requirement want show header in generated excel
please advise
i found solution this. achieve need add following event:
protected void radgrid1_excelmlexportrowcreated(object sender, telerik.web.ui.gridexcelbuilder.gridexportexcelmlrowcreatedargs e) { if (e.rowtype == telerik.web.ui.gridexcelbuilder.gridexportexcelmlrowtype.headerrow) { e.worksheet.worksheetoptions.pagesetup.pageheaderelement.data = "this draft data"; } }
it work me.
Comments
Post a Comment