We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

How to export selected rows (only if the checkbos is checked) from GGC to excel

 

Hi,

Please let me know how to export only selected row (rows in which checkbox is checked) to excel. Please let me know what I should include(in place of  ???) in the below code to achieve the same.

protected void RecordCheck_CheckedChanged(object sender, System.EventArgs e)

{

System.Web.UI.WebControls.CheckBox checkbox1 = (System.Web.UI.WebControls.CheckBox)sender;

GridRow gridrow = (GridRow)checkbox1.Parent.Parent.Parent;

if (checkbox1 != null)

{

if (checkbox1.Checked == true)

{

GridExcelExport excel = new GridExcelExport(???, fileName);

excel.ExportNestedTable = true;

excel.Export();

}

}

 

Thanks,

Varsha


1 Reply

AK Arun Kumar V Syncfusion Team August 30, 2012 06:59 AM UTC

Hi Varsha,

Please refer the following forum post for answer.


Regards,
Arun Kumar V

Loader.
Live Chat Icon For mobile
Up arrow icon