C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » ASP.NET »

Regarding Datagrid


Posted Date: 10 Jul 2006      Posted By: sumathi      Member Level: Silver     Points: 2   Responses: 3



Hi
if any difference between DataGrid and DataList........... Explain WIth Example..
what is the difference b/w Dataset and DataReader Explain with example.....

Cheers
Sumi






Responses

Author: Barinder jeet singh    10 Jul 2006Member Level: BronzeRating: 2 out of 52 out of 5     Points: 2

Hi sumi
There r many difference b/w datagrid & list.
It is easy to use datagrid.
u can perform many operations upon datagrid very easy like paging which is very difficult into datalist.
U can use bound column fields,datakeys very easily.

regarding ur second question datagrig works like a buffer when we use datagrid and query is execute and let 5 records is selected then 5 records is entered into the dataset into a single time. but into the datareader at a time it takes only a single record.
so it goes to 5 times to database to retrive 5 records.

in other words we cansay that reader is like interprater and datagrid is compiler.

another thing if we use datareader then it is necessery to open the connection and after execution the command we close the connection. But datagrid automatically open the connection and close the connection.
If u have more queries u can contact me master_brain@rediffmail.com
Bye.......



Author: Vimal Verma    10 Jul 2006Member Level: GoldRating: 2 out of 52 out of 5     Points: 2

hi,

there is a diff in DataGrid and datalist as well, datagrid has a default template and also provide a default paging while datalist does not have a default template and does not provide inbuild paging as well,

and diff b/w datareader and dataset is that u can make changes in dataset while datareader is only for reading , moreover u can move only in forward direction in case of data reader and also can jump to next record only and cna not jump to any specific record, which is off course possible in dataset

cheers



Author: lavanya    13 Nov 2008Member Level: GoldRating: 2 out of 52 out of 5     Points: 4

hai..
Refer this sites

http://msdn.microsoft.com/en-us/magazine/cc301328.aspx

http://aspnet.4guysfromrolla.com/articles/052103-1.aspx

http://www.velocityreviews.com/forums/t99800-what-is-the-difference-between-datagrid-and-datalist.html

Regards
Lavanya



Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.


Next : To upload Documents like(doc,pdf,etc) to file system
Previous : designing a white board consisting of mathamatical symobols in asp.net(vb.net)?
Return to Discussion Forum
Post New Message
Category: ASP.NET

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use