Import data from excel to GDBG

Hello.
There are many articles and samples about
moving data from grid to excel.

But I couldn't find sample that moves data
from excel to GridDataBoundGrid.

I use below code, but it didn't work.

Syncfusion.GridExcelConverter.GridExcelConverterControl gecc = new Syncfusion.GridExcelConverter.GridExcelConverterControl();
gecc.ExcelToGrid(@"D:\ABC\abc.xls", this.gridDataBoundGrid1.Model);


Please, let me know how I do it.
Thank you.



2 Replies

NR Nirmal Raja Syncfusion Team November 20, 2008 08:48 AM UTC

Hi Chin,

Thank you for your interest in Syncfusion product.

The Excel import is done using a class called ExcelEngine.
A Workbook will be created for the application using IApplication, and the workbook holds all the WorkSheet of the Excel.
So the collection is maintained using WorkSheets object, to retrive a specific sheet of the ExcelEngine it can be retrieved from the WorkSheets collection.

Please refer the below samples:
GDBGImportExcel

Let me know if you have any queries.

Regards,
Nirmal



HL Hyung-Jin Lee November 20, 2008 11:06 AM UTC

Hello. Nirmal
I solved the problem with your help.
Thank you very much.




Loader.
Up arrow icon