I have recursive data table (data context) as datasource. The maxbanddepth is set to 5. I was able to add new record on level 1 and level 2 by clicking add new button on the grid. but on third level onward, it gives error "unable add a new row, underlying datasource does not support adding new rows". I am using Winform 9.1 and VS 2008.
Thanks
Wow, that's strange. Thanks for letting me know. :)
Hi Mike,
I solved this problem by bypassing Bindingsource. I directly bind Ultragrid to data context table, it works. But if I bind ultragrid to Bindingsource, then Bindingsource to data context table, it gives problem. I believe it is something wrong with MS Bindingsource.
Thanks a lot for your help, Mike.
Sting
Hi Sting,
Hm, in that case, I'm stumped. Can you duplicate this in a small sample project so that we can take a look?
Thanks for your reply.
I am using one table of data context, which is the datasource of my bindingsource, my ultragrid is using the bindingsource as datasource. I try normal data grid to add new row (without recursive), it works. Other actions in ultragrid , such as update, it works fine. Adding new row on level 1 and level 2 is working. Only when I try to add new row on third level onward, it gives error.
That's odd. That message comes from the data source, not from the grid, so something is odd with the actual data source you are using.
What is your grid's DataSource? I assume you are using a DataSet, but you mention something about a "data context" which is not something I am familiar with.