This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Ok, I'm a novice Asp.net developer and am experimenting with Lightspeed so sorry if my question seems naive. Is the recommended way to bind a list of entity objects to a DataGrid/GridView with paging/sorting to use the control's paging feature or to use the paging from the unitofwork? I'm assuming it would be better to page from the unitofwork and to bind the list after each call to the "Page.At" method when the user selects a page/navigation link. Thanks, Mike |
|
|
Hi Mike, Thanks for your query. I'm not a big DataGrid/GridView guy but hopefully the following link will help you out (it's for .NET 2.0 but the GridView in modern should be similar): http://www.codersource.net/asp_net_grid_view_whidbey.aspx Effectively if you have your UnitOfWork available somewhere and just append paging details when the selected page changes to your query. I hope that helps - let me know if this doesn't work as desired and I'll see if I can get more information on using the GridView for you :-) John-Daniel Trask |
|
|
Thanks for your reply. I'm always looking for more efficient/better ways to create the pages. Do you use a datalist or repeater instead? And then, I'm assuming, manual paging using Lightspeed? Do you have any examples? By the way, GREAT product. I'm a Windows forms developer and write a ton of database applications for my company. This takes a huge chunk out of my development time. I'm in the process of getting them to approve the Lightspeed purchase (hopefully one of the packages.... don't have a need for all of the items yet but I'm sure I can find a use for them). Mike |
|