Building a DataGrid Helper Control For ASP.NET 1.x: Part 1
page 5 of 5
by Li Chen
Feedback
Average Rating: This article has not yet been rated.
Views (Total / Last 10 Days): 49819/ 60

Final Notes

[Download Code]
In concluding this article, I would like to point out the following:

  1. The LoadData event only requires a data source to be created and assign to the DataSource property of the event argument. Therefore, it is possible to create the data source in a middle-tier class instead of in the data access page.
  2. In all the demos in this article, we sort and page the data in ASP.NET. While this method works well for small datasets, we should avoid it on large datasets.  We should consider sorting large datasets on the server side. The SortExpression property the DataGridHelper control could be used in the LoadData event to sort the dataset on the server side. Currently, there are a number of techniques available on paging through large datasets. We should set the AllowCustomPaging property of the DataGrid control to true, and use the CurrentPageIndex property of the DataGrid to fetch a subset of data in the LoadData event.

In the next article of the series, I discuss how to simplify the DataGrid programming involved in doing an update or delete.

Check http://www.dotneteer.com/home/datagridhelper for future updates. For comments, questions and suggestions, email lichen@linkline.com.


View Entire Article

User Comments

Title: DataGrid   
Name: Anita
Date: 7/30/2007 2:01:28 PM
Comment:
Very Good
Title: Confusing   
Name: Anees
Date: 10/5/2006 1:04:44 AM
Comment:
Its confusing for Begginers.
Title: Atish.netExpress   
Name: Atish J
Date: 9/1/2006 6:05:32 AM
Comment:
Ver nice .......!
Title: datagrid   
Name: shailendra
Date: 9/1/2006 2:18:27 AM
Comment:
good
Title: Good   
Name: Prashant Raizada
Date: 7/27/2006 4:40:54 AM
Comment:
Good job!!!
Title: Testing Form   
Name: BinDev1998
Date: 9/21/2004 11:53:35 PM
Comment:
This is Cool!
Title: good!   
Name: Region
Date: 8/9/2004 1:59:31 AM
Comment:
Is Like My Grid
Title: NICE   
Name: Raghuraman
Date: 8/7/2004 3:12:19 AM
Comment:
a nice walk thru
Title: Not Bad   
Name: Tarzan from Zimbava
Date: 8/7/2004 2:46:39 AM
Comment:
It's a good article for Asp starters
Title: good   
Name: gayathri
Date: 8/7/2004 1:41:33 AM
Comment:
good
Title: good   
Name: ramu
Date: 6/28/2004 4:15:35 AM
Comment:
good article

Product Spotlight
Product Spotlight 





Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2014 ASPAlliance.com  |  Page Processed at 8/20/2014 6:41:42 AM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search