CSLADataSource ReDatabind Design Question

CSLADataSource ReDatabind Design Question

Old forum URL: forums.lhotka.net/forums/t/3708.aspx


AKaplan posted on Sunday, October 14, 2007

I have a question if it would be a good idea to redesign the csladatasource events of the insert, update, and delete to fire the select event after each event has occured? would this make redatabinding easier and faster? i understand this will effect all business Objects that use the datasource, but isn't the point of manipulating data is to retrieve it back anyhow? I'm just wondering if this is a good idea or not.

RockfordLhotka replied on Sunday, October 14, 2007

This isn't the way Web Forms data binding works though. To trigger a rebind, you must start with the UI control itself (DataGrid, etc) and have that control request the rebind. A data source control can't initiate a refresh of data or a rebinding - that's too low in the data binding infrastructure.

AKaplan replied on Monday, October 15, 2007

Alright it was just a thought..

RockfordLhotka replied on Monday, October 15, 2007

And I appreciate the thought! :)   Many of the best features of CSLA have come from input on this forum, so keep it coming.

 

Rocky

 

 

From: AKaplan [mailto:cslanet@lhotka.net]
Sent: Monday, October 15, 2007 7:03 PM
To: rocky@lhotka.net
Subject: Re: [CSLA .NET] CSLADataSource ReDatabind Design Question

 

Alright it was just a thought..

AKaplan replied on Monday, October 15, 2007

I have another thought as well. I'm starting to implement .net 3.0 asynchronous objects and http handlers to speed up application processing. is it as easy as just adding in the implement IAsyncResult in the object? if i do implement this as well.. would this effect regular synchronous behaviour? I'm getting my ideas from http://msdn2.microsoft.com/en-us/library/ms227433.aspx . if you were interested.

RockfordLhotka replied on Tuesday, October 16, 2007

That’s not something I’ve explored – let us know how it works out!

 

Rocky

 

From: AKaplan [mailto:cslanet@lhotka.net]
Sent: Monday, October 15, 2007 9:51 PM
To: rocky@lhotka.net
Subject: Re: [CSLA .NET] RE: CSLADataSource ReDatabind Design Question

 

I have another thought as well. I'm starting to implement .net 3.0 asynchronous objects and http handlers to speed up application processing. is it as easy as just adding in the implement IAsyncResult in the object? if i do implement this as well.. would this effect regular synchronous behaviour? I'm getting my ideas from http://msdn2.microsoft.com/en-us/library/ms227433.aspx . if you were interested.



Copyright (c) Marimer LLC