I'm trying to add rows to the grid but I get an error saying.
Unable to add row: Unable to add a new row. Underlying DataSource does not support adding new rows
can someone tell me what I need to do, to make it work?
pioner,
Mike mentioned in this post, earlier in the same thread, why this occurs when using a List<>. Use a BindingList<> instead.
I'm trying to add rows to the infragistic ultragrid but I get an error saying.
I am using List
List<T> cannot support adding new rows. Using BindingList<T> instead.
Whats the best way to bind List<> to Ultragrid , given that i have to add new rows.. I tried Rows.Band.AddNew(); but it gives same error ..
There's no automatic way to copy a list into an UltraDataSource, although writing code to do this would not be terribly difficult.
Maybe instead of List you should use BindingList.