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. Image for the cookie policy date

ImportDataTable from .xlsx file to a GridDataControl

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

1 Reply

KA Kamalakannan A Syncfusion Team 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



Loader.
Live Chat Icon For mobile
Up arrow icon