I'm using a (BulkEdit)GridView in wich all rows are editable. I am using a CslaDataSource (v2.0.2) as the datasource for the GridView.
Upon save, I only get values of the first row back in my Csla.Web.UpdateObjectArgs or so it would seem
Am I doing something wrong here, or is the cslaDS not equipped (yet) for this.
Regards,
Jurjen.
P.S. for those interested in BulkEditGridView : http://blogs.msdn.com/mattdotson/articles/490868.aspx
I just looked at the code for CslaDataSource, and it doesn't support this. Beyond that, I don't see how it could support the concept, since the Microsoft data source base class doesn't provide this kind of information. In other words, I don't see how the ASP.NET data binding infrastructure supports the concept at all.
You can look at Chapter 5 to see how I implement the control, and how it gets the updated data from data binding and then relays it to your page. If you can see where it would get multiple edited rows from data binding I'll happily consider enhancing the control to support the concept at some point.
Rocky,
You just beat me to it. It IS possible it seems, the UpdateObject event is raised/fired for every changed record in the grid. I found this out this afternoon, but hadn't had the time yet to post it here.
Jurjen.
From: Jurjen [mailto:cslanet@lhotka.net]
Sent: Monday, July 17, 2006 5:38 PM
To: rocky@lhotka.net
Subject: Re: [CSLA .NET] cslaDataSource, not returning all modified rows(BO's)Rocky,
You just beat me to it. It IS possible it seems, the UpdateObject event is raised/fired for every changed record in the grid. I found this out this afternoon, but hadn't had the time yet to post it here.
Jurjen.
Copyright (c) Marimer LLC