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

ImportDataTable from .xlsx file to a GridDataControl

Thread ID:





96330 Sep 6,2010 03:11 PM UTC Sep 17,2010 12:16 PM UTC General Discussion 1
Tags: General Discussion
Benoit Lecue
Asked On September 6, 2010 03:11 PM UTC

Hi everybody,

I'd like to have an information :)

Actually, i'd like to import datas, from a .xlsx files, into a GridDataControl. Unfortunately, i don't manage to do that.

The code seems to be :

DataTable myTable = dataSheet.ExportDataTable(dataSheet.UsedRange, ExcelExportDataTableOptions.ColumnNames);
DataSet _ds= new DataSet();
grid.Itemssource = _ds.Tables[0];

The UsedRange is the good one so I thought it will works but no..

Here is my XAML:

And i join u my simple .xlsx file.

Hope u can help me.

Thanks a lot.



Kamalakannan A [Syncfusion]
Replied On September 17, 2010 12:16 PM UTC

Hi Benoit,

Sorry for the delay caused.

The GridDataControl does not support to import data from the Excel and display the same.

Please let us know if you need any other information.



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