| Author: Barinder jeet singh 10 Jul 2006 | Member Level: Bronze | Rating:  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 2006 | Member Level: Gold | Rating:  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 2008 | Member Level: Gold | Rating:  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
|