StrataFrame Forum
Home
»
StrataFrame Application Framework - V1
»
WebForms (How do I?)
WebBusinessBindingSource
http://forum.strataframe.net/Topic33409.aspx
By Charles Thomas Blankenship
-
10/31/2016
I've dropped the WBBS on the ASPX, wired it up to the business object and then made the WBBS the datasource for both a standard MS GridView and the ASPxGridView ... all of the columns are marked as ReadOnly = false but none of the columns are editable.
Anyone have a clue as to why I cannot edit the columns?
CT
By Charles Thomas Blankenship
-
10/31/2016
And yep ... I set the BO to Edit() ...
By Charles Thomas Blankenship
-
10/31/2016
Not only that but the WBBS does not sync to the row in the database when a new row in the grid is selected.
Crap ...
Me thinks I'm using the WBBS incorrectly ... but if it is anything like the Winforms BBS I don't think so.
CT
By Charles Thomas Blankenship
-
10/31/2016
This keeps just getting better ... and worse.
I've gotten the grid to edit the columns but when I press the update button on the grid the newly edited data is not updating SQL Server and there are no errors thrown.
I'm 'bout ready to give up on the WBBS but I'm sure it is not its fault as it has been being used for quite some time.
Just interested ... what is the inner workings of this animal? The grid has the table's primary ID set properly. When I halt the RowUpdating process and examine the business object's CurrentDataTable, the information in the grid has not made it to the business object, which is a very obvious reason why the business object is not updating the database.
By Charles Thomas Blankenship
-
10/31/2016
Finally, after breaking at the RowUpdated event, the data does make it to the business object. However, not to the SQL Server table.
Any insight would be greatly appreciated.
By Charles Thomas Blankenship
-
11/3/2016
Solved it ... at least I think I did. The WBBS and the ASPxGrid control simply worked differently than I thought. After placing the grid in Edit mode, making a change, then pressing the grid's save button the grid successfully commits the change but to the business object data fields not the database itself. Therefore, in order to get the data from the BO to the database, in the grid's DataUpdated method I simply had to call the BO's Save() method. If anyone has a better way I'd like to hear it.