Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



Datagrid VS Gridview

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 16-01-2010
Member
 
Join Date: Dec 2009
Posts: 17
Datagrid VS Gridview
  

I am using the DELL Inspiron 560 desktop computer with Windows XP as operating system. I am beginner programmer in today's programming world. Right now getting knowledge(learning) about programming language like Java, Visual Basic 6, ASP, C sharp and DBMS. I want to know what is difference between the DataGrid and GridView?? And which will be best to use??

Reply With Quote
  #2  
Old 16-01-2010
Member
 
Join Date: May 2008
Posts: 2,005
Re: Datagrid VS Gridview

Good question ask. I opinion would be the GridView control is the more successor to the DataGrid control. The GridView control is design to show/display data in an HTML table, same has DataGrid. And when you bound both of them to a data source, they both will each display a row from a DataSource as a row in an output table. The gridview has new feature which datagrid does not have and they are: Richer design-time capabilities, improved data source binding capabilities and additional column types and design-time column operations.
Reply With Quote
  #3  
Old 16-01-2010
Member
 
Join Date: Apr 2008
Posts: 1,999
Re: Datagrid VS Gridview

I would give you short and simple answer. The answer is that the gridview has many built-in controls for sorting and paging whereas when comes to the datagrid requires 3poodles. And from my personal experience, the gridview is much flexible, but it still carries a lot of "weight" as a trade-off for that flexibility. Hope your will get proper knowledge about the datagrid and gridview.
Reply With Quote
  #4  
Old 16-01-2010
Member
 
Join Date: Nov 2005
Posts: 1,323
Re: Datagrid VS Gridview

Advantages of Grid View compared to DataGrid
1] It has the now attributes paging again sorting can emblematize implemented misplaced postback.
2] We need to set coin EnablePagingandSortingCallbacks to true. When user selects another page catalogue for GridView it doesn't postback.
3] We can populate gridview from SqlData source/Object Data dawn by setting. DataSourceid property of GridView. In ObjectDataSource we can give the mention of the business object(class), which makes occupation easier.
4] When we populate GridView from SqldataSource or ObjectDataSource,by locale allowSorting and Allow Paging commit be handled in built. When we populate gridview other than by giving DataSourceId we need to handle paging also sorting explicitly.
5] AutogenerateColumns property is set to apropos in cons
Reply With Quote
  #5  
Old 16-01-2010
Member
 
Join Date: Oct 2005
Posts: 2,388
Re: Datagrid VS Gridview

Since they both outputs as HTML Tables, the absolute differences are activity to be in how you manually edit the codes for Sorting, paging, updates, and deletions in DataGrids. Manual coding isn't appropriate for these with GridViews. How able-bodied (performance-wise) do you code?
Reply With Quote
  #6  
Old 16-01-2010
Member
 
Join Date: Feb 2008
Posts: 1,844
Re: Datagrid VS Gridview

According to me, the Datagrid can be used in web also, and think so the most important differences are the sorting, inserting which is been told already. And also the DataGrid is used for the windows applications, but in earlier versions where datagrids were the only source i.e. ASP.NET 1.1, contains many issues and thus many people used to use XPTables instead of grid inwindows applications. Hope you got enough knowledge about the Datagrid and Gridview.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , , , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Datagrid VS Gridview"
Thread Thread Starter Forum Replies Last Post
neweditindex property in gridview Alexis25 Software Development 3 13-06-2009 10:05 AM
How to use Gridview ImageField in DataImageUrlFormatString on ASP.net AK_Chopra Software Development 2 08-06-2009 09:54 PM
Add Columns to GridView Programmatically Firon Software Development 3 19-05-2009 06:44 PM
Nested DataTable for GridView Renderman21 Software Development 3 08-05-2009 02:08 PM
asp.net gridview to pdf Dietrich Software Development 1 05-02-2009 11:15 AM


All times are GMT +5.5. The time now is 01:11 PM.