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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

ImportDataTable from .xlsx file to a GridDataControl

Thread ID:

Created:

Updated:

Platform:

Replies:

96330 Sep 6,2010 03:11 PM UTC Sep 17,2010 12:16 PM UTC General Discussion 1
loading
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();
_ds.Tables.Add(dt);
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.

Regards.



File_6f6c39b7.rar

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.

Thanks
Kamal



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

;