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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Imports xls file into grid

Thread ID:

Created:

Updated:

Platform:

Replies:

60307 May 2,2007 01:42 PM UTC May 2,2007 02:37 PM UTC WinForms 1
loading
Tags: GridControl
Lecomte
Asked On May 2, 2007 01:42 PM UTC

Hi,

Can someone gives me de code line to fill a gridcontrol with an excel file.

Thank

Beginner must live and learn !!!!!

haneefm [Syncfusion]
Replied On May 2, 2007 02:37 PM UTC

Hi Lecomte,

An excel sheet can also be imported to the GridControl using the ExcelToGrid method. The code to import the xls file is given below.

Syncfusion.GridExcelConverter.GridExcelConverterControl gecc = new Syncfusion.GridExcelConverter.GridExcelConverterControl();
gecc.ExcelToGrid( openFileDialog.FileName, this.gridControl1.Model);

Also refer to the ExcelExport_GridControl browser sample for more details.
C:\Program Files\Syncfusion\Essential Studio\4.4.0.49\Windows\Grid.Windows\Samples\Serialization\ExcelExport_GridControl

Best regards,
Haneef

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;