Skip to content

Commit ecbe120

Browse files
authored
Update README.md
1 parent b2ca1f0 commit ecbe120

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
# How to Export the excel file with checkbox in WinForms DataGrid (SfDataGid)?
1+
# How to export the Excel file with checkbox in WinForms DataGrid?
22

33
## About the sample
4-
This example illustrates how to Export the excel file with checkbox in [WinForms DataGrid](https://www.syncfusion.com/winforms-ui-controls/datagrid) (SfDataGrid)?
4+
This example illustrates how to export the Excel file with checkbox in DataGrid.
55

6-
[WinForms DataGrid](https://www.syncfusion.com/winforms-ui-controls/datagrid) (SfDataGrid) does not provide the direct support to export the excel file with a checkbox. You can export the excel file with a checkbox by customization the [CellExporting](https://help.syncfusion.com/cr/windowsforms/Syncfusion.WinForms.DataGridConverter.ExcelExportingOptions.html#Syncfusion_WinForms_DataGridConverter_ExcelExportingOptions_CellExporting) event of the [ExcelExportingOptions](https://help.syncfusion.com/cr/windowsforms/Syncfusion.WinForms.DataGridConverter.ExcelExportingOptions.html) in [WinForms DataGrid](https://www.syncfusion.com/winforms-ui-controls/datagrid) (SfDataGrid).
6+
[WinForms DataGrid](https://www.syncfusion.com/winforms-ui-controls/datagrid) (SfDataGrid) does not provide the direct support to export the excel file with a checkbox. You can export the excel file with a checkbox by customizing the [CellExporting](https://help.syncfusion.com/cr/windowsforms/Syncfusion.WinForms.DataGridConverter.ExcelExportingOptions.html#Syncfusion_WinForms_DataGridConverter_ExcelExportingOptions_CellExporting) event of the [ExcelExportingOptions](https://help.syncfusion.com/cr/windowsforms/Syncfusion.WinForms.DataGridConverter.ExcelExportingOptions.html) in DataGrid.
77

88
```C#
99

1010
GridExcelExportingOptions.CellExporting += Options_CellExporting1;
11-
11+
1212
private void Options_CellExporting1(object sender, Syncfusion.WinForms.DataGridConverter.Events.DataGridCellExcelExportingEventArgs e)
1313
{
1414
// Based on the column mapping name and the cell type, we can change the cell values while exporting to excel.
1515
if (e.CellType == ExportCellType.RecordCell && e.ColumnName == "IsShipped")
1616
{
17-
//add the checkbox into excel shhet
17+
//add the checkbox into excel sheet
1818
var checkbox = e.Range.Worksheet.CheckBoxes.AddCheckBox(e.Range.Row, e.Range.Column, 20, 20);
1919

2020
//set the checked or unchecked state based on cell value

0 commit comments

Comments
 (0)