English 中文(简体)
Autopaging or custom paging which is better in datagrid?
原标题:

i used datagrid control in .net platform... but now i am in big confusion .. that is ..which is better to used custom or autopaging option..

gud explaination or example is needed..

i dont know about any method.. very well.

i find on search.. but i dont find good material..

thanks...

最佳回答

It depends on your requirements, or what you want achieve.

The pros of custom paging are mentioned at msdn.

http://msdn.microsoft.com/en-us/library/aa983953(VS.71).aspx

Hope this helps you.

Custom paging samples: https://web.archive.org/web/20210309192630/http://www.4guysfromrolla.com/webtech/082901-1.shtml

http://www.codeproject.com/KB/webforms/CustomizePagerDataGrid.aspx

问题回答

The deciding factor is the performance of the app. If your data set is small, you can get away with auto paging... just keep in mind that it retrieves the entire dataset on every bind.

If your data is not big you can go ahead with datagrid paging as essentially it gets all the data of your table or query to client side and page it.

But if you are having huge data you can see this article for multiple options available

http://www.codeproject.com/KB/aspnet/PagingLarge.aspx





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Transaction handling with TransactionScope

I am implementing Transaction using TransactionScope with the help this MSDN article http://msdn.microsoft.com/en-us/library/system.transactions.transactionscope.aspx I just want to confirm that is ...

System.Web.Mvc.Controller Initialize

i have the following base controller... public class BaseController : Controller { protected override void Initialize(System.Web.Routing.RequestContext requestContext) { if (...

Microsoft.Contracts namespace

For what it is necessary Microsoft.Contracts namespace in asp.net? I mean, in what cases I could write using Microsoft.Contracts;?

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签