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:





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


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


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\\Windows\Grid.Windows\Samples\Serialization\ExcelExport_GridControl

Best regards,


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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