-------------------Code Sample---------------------
UltraWebGrid UltraExcelGrid = new UltraWebGrid();
// Populate the Dataset UltraExcelGrid.DataSource
ds = (
DataSet)UltraExcelGrid.DataSource;
UltraExcelGrid.DisplayLayout.RowsRange = ds.Tables[0].Rows.Count;
UltraExcelGrid.DataSource = ds;
UltraExcelGrid.DataBind();
excelExporter.WorksheetName = title;
The UltraExcelGrid.DataBind(); gives error as object reference not set to an instance of an object.
The code works fine in .Net Fr 2 and Infragistcs 7.2 but fails in .Net Fr 4 and Infragistics 10.3
Please advise what changes need to be done.
Hello infra_samurai
Please take a look at the sample i am attaching. Just change the references to match the build you have for 10.3. As far as I can see you create a grid and then cast its datasource which is null to DataSet. This is causing the issue. You have to make a datasource which is not null but an object. Please also take note that old ultra controls are not part of our Products the last two versions - http://community.infragistics.com/blogs/taz_abdeali/archive/2011/11/17/asp-net-product-changes-in-2011-volume-2.aspx
Hello infra_samurai,Please let me know if you have any further questions regarding this issue.