Hello,
I use a WHDG bound to a self referenced SQL DataSource (like a simple table ID,ParentID, Name).I allowed editingcore & rowadding behaviours and set the EnableInheritance Property to True.
My problem is that i can't add row under records that have no child records.... As there's no children under those records, there's no row island and no more AddRow...
I assume that's a bug, because it works with a WHDG bound to 2 sqlDS like (Orders and OrderDetails).
Can someone help me ?
This workaround works...but I hope that will be corrected in the next release.
Thank you for your help, i don't know how you find this tricky trick !!
Your components are really powerful, but too powerful to be tested in all situations and to have good documentation and samples.
Could you help me for my other issues ?
Regards,
Gregory
Hi Gregory,
I'm looking into why this set up doesn't work. When I got it to work on my end, I actually defined a child band that had the same columns as the parent and set IsSelfReference="true" on that. Then I got what I wanted. Would this be acceptable in the meantime?
-Dave
Hi David,
Here's a sample.
Moreover if you could explain me how to set the default value of parentID to (null) for root creation record, it could be fine.
I hope that you'll help me, cause last time you asked me a sample, i uploaded it and i'll still waiting.So, please have a look to all my recents posts (since june) in the asp.net forums :)
Hi gvi,
I attempted to replicate this on my end, but did not have any luck. Could you maybe send a small sample our way?
regards,David Young