WebBusinessBindingSource


Author
Message
Charles Thomas Blankenship...
Charles Thomas Blankenship
Advanced StrataFrame User (640 reputation)Advanced StrataFrame User (640 reputation)Advanced StrataFrame User (640 reputation)Advanced StrataFrame User (640 reputation)Advanced StrataFrame User (640 reputation)Advanced StrataFrame User (640 reputation)Advanced StrataFrame User (640 reputation)Advanced StrataFrame User (640 reputation)Advanced StrataFrame User (640 reputation)
Group: Awaiting Activation
Posts: 172, Visits: 12K
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

Charles T. Blankenship
Senior Consultant
Novant Consulting, Inc.
704.975.7152
http://www.novantconsulting.com
Charles Thomas Blankenship...
Charles Thomas Blankenship
Advanced StrataFrame User (640 reputation)Advanced StrataFrame User (640 reputation)Advanced StrataFrame User (640 reputation)Advanced StrataFrame User (640 reputation)Advanced StrataFrame User (640 reputation)Advanced StrataFrame User (640 reputation)Advanced StrataFrame User (640 reputation)Advanced StrataFrame User (640 reputation)Advanced StrataFrame User (640 reputation)
Group: Awaiting Activation
Posts: 172, Visits: 12K
And yep ... I set the BO to Edit() ... 

Charles T. Blankenship
Senior Consultant
Novant Consulting, Inc.
704.975.7152
http://www.novantconsulting.com
Charles Thomas Blankenship...
Charles Thomas Blankenship
Advanced StrataFrame User (640 reputation)Advanced StrataFrame User (640 reputation)Advanced StrataFrame User (640 reputation)Advanced StrataFrame User (640 reputation)Advanced StrataFrame User (640 reputation)Advanced StrataFrame User (640 reputation)Advanced StrataFrame User (640 reputation)Advanced StrataFrame User (640 reputation)Advanced StrataFrame User (640 reputation)
Group: Awaiting Activation
Posts: 172, Visits: 12K
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

Charles T. Blankenship
Senior Consultant
Novant Consulting, Inc.
704.975.7152
http://www.novantconsulting.com
Charles Thomas Blankenship...
Charles Thomas Blankenship
Advanced StrataFrame User (640 reputation)Advanced StrataFrame User (640 reputation)Advanced StrataFrame User (640 reputation)Advanced StrataFrame User (640 reputation)Advanced StrataFrame User (640 reputation)Advanced StrataFrame User (640 reputation)Advanced StrataFrame User (640 reputation)Advanced StrataFrame User (640 reputation)Advanced StrataFrame User (640 reputation)
Group: Awaiting Activation
Posts: 172, Visits: 12K
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.

Charles T. Blankenship
Senior Consultant
Novant Consulting, Inc.
704.975.7152
http://www.novantconsulting.com
Charles Thomas Blankenship...
Charles Thomas Blankenship
Advanced StrataFrame User (640 reputation)Advanced StrataFrame User (640 reputation)Advanced StrataFrame User (640 reputation)Advanced StrataFrame User (640 reputation)Advanced StrataFrame User (640 reputation)Advanced StrataFrame User (640 reputation)Advanced StrataFrame User (640 reputation)Advanced StrataFrame User (640 reputation)Advanced StrataFrame User (640 reputation)
Group: Awaiting Activation
Posts: 172, Visits: 12K
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.

Charles T. Blankenship
Senior Consultant
Novant Consulting, Inc.
704.975.7152
http://www.novantconsulting.com
Charles Thomas Blankenship...
Charles Thomas Blankenship
Advanced StrataFrame User (640 reputation)Advanced StrataFrame User (640 reputation)Advanced StrataFrame User (640 reputation)Advanced StrataFrame User (640 reputation)Advanced StrataFrame User (640 reputation)Advanced StrataFrame User (640 reputation)Advanced StrataFrame User (640 reputation)Advanced StrataFrame User (640 reputation)Advanced StrataFrame User (640 reputation)
Group: Awaiting Activation
Posts: 172, Visits: 12K
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.

Charles T. Blankenship
Senior Consultant
Novant Consulting, Inc.
704.975.7152
http://www.novantconsulting.com
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search