Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
935
WebExcelExporter on WebHeirarchical DG doesn't get data from manual Onload Demand?
posted

 

This is my code to export my WHDG Records.

 protected void lnkExporttoExcell_Click(object sender, EventArgs e)

        {

            eExporter.DataExportMode = DataExportMode..AllDataInDataSource;

 

            if (eExporter.DataExportMode == DataExportMode..AllDataInDataSource)

            {

                WebHierarchicalDataGrid1.DataBind();

            }

            string fileName = HttpUtility.UrlEncode("Summary");

            fileName = fileName.Replace("+", "%20");

            eExporter.DownloadName = fileName;

            eExporter.WorkbookFormat = Infragistics.Excel.WorkbookFormat.Excel2007;

            eExporter.Export(WebHierarchicalDataGrid1);

        }

 

 

But the data exported is only the parent which came from a sqldatasource

and it doesnt exported the records from my child band that uses manual on load demand.

Parents Reply Children
No Data