Exforsys

Free Training

Data grid

This is a discussion on Data grid within the ASP forums, part of the Programming Talk category; What is the difference between data-grid and data list? http://www.careerbharat.com...

Go Back   Exforsys > Programming Talk > ASP

Exforsys.com

  #1 (permalink)  
Old 08-16-2006, 08:53 PM
Junior Member
 
Join Date: Aug 2006
Posts: 1
careerbharat is on a distinguished road
Question Data grid

What is the difference between data-grid and data list?

http://www.careerbharat.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 10-12-2006, 05:25 PM
Junior Member
 
Join Date: Oct 2006
Posts: 3
nskr10 is on a distinguished road
hi,

Datagrid will show everything in table format (i.e; rows and columns). But Data list will show everything in a list format.

check this site for more info.

The ASP Column: DataList vs. DataGrid in ASP.NET -- MSDN Magazine, December 2001

NSKR
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 12-05-2006, 06:02 AM
Senior Member
 
Join Date: Apr 2006
Posts: 141
Adrian is on a distinguished road
The DataGrid Web control was designed to display data in an HTML <table>. Each row in the DataGrid's DataSource is displayed as a row in the HTML <table>. The DataGrid has an AutoGenerateColumns property, which can be set to either True or False. If AutoGenerateColumns is set to True (the default), each field in the DataSource is displayed as a column in the resulting
HTML <table>. If, however, AutoGenerateColumns is set to False, then the developer must explicitly specify what columns should appear.
One downside of a DataGrid is its rather "blocky" display. That is, the DataGrid displays each DataSource record as a row in an HTML <table>, and each field as a column in said table.

The DataList Web control is useful for displaying data that can be highly customized in its layout. By default, the DataList displays its data in an HTML <table>. However, unlike the DataGrid, with the DataList you can specify via the RepeatColumns how many DataSource records should appear per HTML <table> row. The DataList is capable of performing sorting, paging, and editing of its data, but to do so requires quite a bit more programming than to accomplish these tasks with the DataGrid. Therefore, if you know you will be needing these functionalities, it is likely best to proceed with the DataGrid. If, however, you will not need these functionalities, but do necessarily need the extra control over the formatting, consider a DataList.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
Roadmap to careeer in Data warehousing dwuser Dataware Housing Tools 0 04-13-2006 06:20 AM
Difference between Data Warehouse database and OLTP database techguru Data Warehousing 2 04-11-2006 04:19 AM
difference between Data Warehouse and Online Analytical Processing techguru Data Warehousing 1 04-10-2006 11:25 AM
Microsoft .NET : Link Data to Your UI Automatically techguru Microsoft .NET Tutorials and Articles 0 08-28-2005 08:24 PM
hierarchail & network kisshug Oracle Tutorials 2 05-01-2005 04:17 PM


All times are GMT -4. The time now is 10:10 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0
Copyright 2004 - 2009 Exforsys Inc. All rights reserved.