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.
Unfortunately, activation email could not send to your email. Please try again.

ImportDataTable from .xlsx file to a GridDataControl

Thread ID:

Created:

Updated:

Platform:

Replies:

96330 Sep 6,2010 11:11 AM Sep 17,2010 08:16 AM General Discussion 1
loading
Tags: General Discussion
Benoit Lecue
Asked On September 6, 2010 11:11 AM

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 08:16 AM

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.

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.

;