Hi Mike, We have a UltraGrid with all unbound columns (No Data source) When we are trying to add a Row using band.AddNew() method throws exception 'Not enough context to add a new row. Either a row in this band or the parent band has to be active to provide for enough context.'. Because of some reasons we are not using data source, Is there any way to add a new row without using data source.
Thanks in advance.
--Ganesh
Hi Ganesh,
The grid cannot be used unbound, it must have a DataSource in order to function. So I recommend that you use UltraDataSource or a BindingList<T> or a a DataTable you create in code.
You might try creating a datatable in memory that matches your requirements. Then set the datasource to the datatable.
That should allow you to add a row...