Difference between DataGrid and GridView

Hi All !

I am back !!!


Difference between DataGrid and GridView:
==========================================


In .Net 2.0, we are using GridView. Since DataGrid and GridView are same we have some extra facilities and features in GridView than DataGrid.

By using GridView we can render it on Mobile Devices also, but DataGrid only use for web pages. Another key difference between DataGrid and GridView controls lies in the adaptive user interface.

In DataGrid paging, sorting, inserting, updating and deleting are implementing by coding. But in GridView automatically generates those things without user writing the code.
Sorting: In DataGrid code requires handling the SortCommand event and rebind grid required. In case of GridView no additional code required.
Paging: In DataGrid requires code to handle the PageIndexChanged event and rebind grid required. In case of GridView no additional code required. It also supports customized appearance.
Data binding: Like GridView DataGrid cannot bind with new datasource control in ASP.NET 2.0.
Updating data: DataGrid requires extensive code to update operation on data. GridView requires little code. Code like exceptions handling for database part.
Events: GridView supports events fired before and after database updates. In DataGrid fewer events supported as compared to GridView.

In DataGrid no image template column, whereas GridView have image template column
The GridView control is the successor to the DataGrid control. Like the DataGrid control, the GridView control was designed to display data in an HTML table. When bound to a data source, the DataGrid and GridView controls each display a row from a DataSource as a row in an output table.

Both the DataGrid and GridView controls are derived from the WebControl class. Although it has a similar object model to that of the DataGrid control, the GridView control also has a number of new features and advantages over the DataGrid control, which include:

Richer design-time capabilities.

Improved data source binding capabilities.

Automatic handling of sorting, paging, updates, and deletes.

Additional column types and design-time column operations.

A Customized pager user interface (UI) with the PagerTemplate property.

Differences between the GridView control and the DataGrid control include:

Different custom-paging support.

Different event models.



...S.VinothkumaR.

16 comments:

BENNY WIRAATMAJA said...

Info computer virus n news about computer..

please akses my blog :

http://computervirusvirus.blogspot.com
and
http://collection-computer-news.blogspot.com

Thanks you very much.

reginag said...

I can clearly see the difference. Your post brought light to us.

krk realty

Android app development said...

This is one of the useful post.I like your blog clarity.This is one of the great post.
Android app developers

Sonia Bishnoi said...

Nice stuff you got, very interesting to read.
Well, I do have also in my sleeves, if you have time don't forget to visit
video production companies

shanewatson said...

Nice stuff you got, very interesting to read.
Well, I do have also in my sleeves, if you have time don't forget to visit
website design Birmingham

David Warner said...

Nice stuff you wrote,very interesting to read.
Well, I really appreciate your work,if you have time don't forget to visit
Houston Electricians

Jack said...

Nice stuff you got, very interesting to read.Well, I do have also in my sleeves, if you have time don't forget to visit

router mill

Peter Kaumm said...

Nice stuff you got, very interesting to read.Well, I do have also in my sleeves, if you have time don't forget to visit

corporate video production

christi said...

Nice stuff you got, very interesting to read.Well, I do have also in my sleeves, if you have time don't forget to visit

used cnc routers

lovemmohome said...

Beautiful photo


Cheap Runescape Gold
Cheapest WOW Gold

Unknown said...

very useful stuff you provide us ! if
you need any info about this particular topic so feel free to check my site:- www.apollo-computers.com

Unknown said...

Dapfor .Net Grid is a high-performance component based on WinForms technology for performance-sensitive applications. Supported CLRs: 2.0, 3.0, 3.5, 4.0.Grids of different vendors have almost the same performance when working with static data, i.e. insertion, deletion and data sorting speed remain unchanged. In this field Dapfor’s products have similar characteristics to competitor products. However, with dynamic data Dapfor’s products are unmatched. Performance of dynamic data sorting, filtering and grouping is hundreds times higher than that of competitor grids. A good example is trading application that demonstrates low processor load upon real-time data modification.visit http://www.dapfor.com/en

Manish said...

Nice post, Very well explained in simple words.
Dot Net World

reginag said...

I appreciate your effort done here.

gynecologist maricopa

Unknown said...

I've found this very interesting and has a good stuff for the readers and designers. I would be glad to recommend the post for its quality content. Nice post. Bollywood saree

Unknown said...

good post nice stuff here to read thanks earn online