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

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -