Member function importDataGrid from cells not included?

i want to export a datagrid into an excell sheet.
In the information, the function importdatagrid was described.
But this function is not included in the class, so i can not use it.
How can i add this function to the class, or what went wrong?

thank you

What do you mean “the function is not included”? Please check http://www.aspose.com/Products/Aspose.Excel/Api/Aspose.Excel.Cells.ImportDataGrid.html.

And could you post your related code here?

@seminckx,
Aspose.Excel is discarded and no more under development now. It is replaced with an advanced version Aspose.Cells which supports all the features in its predecessor product as well as provides support for the latest features in different versions of MS Excel. This new product provides lot of features to import and export data to and from Excel file. Following example demonstrates this feature of importing data from DataGrid.

// Create a DataTable object and set it as DataSource of DataGrid.
DataTable dataTable = new DataTable("Products");
dataTable.Columns.Add("Product ID", typeof(Int32));
dataTable.Columns.Add("Product Name", typeof(string));
dataTable.Columns.Add("Units In Stock", typeof(Int32));
DataRow dr = dataTable.NewRow();
dr[0] = 1;
dr[1] = "Aniseed Syrup";
dr[2] = 15;
dataTable.Rows.Add(dr);
dr = dataTable.NewRow();
dr[0] = 2;
dr[1] = "Boston Crab Meat";
dr[2] = 123;
dataTable.Rows.Add(dr);

// Now take care of DataGrid
DataGrid dg = new DataGrid();
dg.DataSource = dataTable;
dg.DataBind();

// We have a DataGrid object with some data in it.
// Lets import it into our spreadsheet
// Creat a new workbook
Workbook workbook = new Workbook();
Worksheet worksheet = workbook.Worksheets[0];

// Importing the contents of the data grid to the worksheet
worksheet.Cells.ImportDataGrid(dg, 0, 0, false);

// Save it as Excel file
workbook.Save(dataDir + "output.xlsx");

Here are articles which provide detailed information about importing and exporting data:
Import data into worksheet
Export data from worksheet

A free download of the latest version of this new product is available here:
Aspose.Cells for .NET (Latest Version)

A runnable solution can be downloaded here which can be used for testing the features of this new product without writing any code.