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.

26 comments:

lala said...

Thanks for your post and welcome to check: here.

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

Steve Finnell said...

you are invited to follow my blog

carl can said...

Sounds very interesting! I will check this out! 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

Dheeraj said...

nice post very well written. i appreciate quality of writing u have SEO Company India

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
cnc routers

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

Texas Health insurance said...

You have very rich posts that really interests to many readers. nice post very well written.

Texas Health Insurance

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

Nicol said...

Thanks for this nice post,interesting to read.
Well,I really appreciate your work,if you have time don't forget to visit
Frases

colling wood 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 Hotels in santa eulalia

Daniel said...

Very well written,you got good stuff
Well,I really appreciate your work,if you have time don't forget to visit
virtual private hosting server

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

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

corporate video services

lovemmohome said...

Beautiful photo


Cheap Runescape Gold
Cheapest WOW Gold

jackson smith 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

Annie Calvert 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 Dubey said...

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

reginag said...

I appreciate your effort done here.

gynecologist maricopa

Manohar singh Jodhpur 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

Gurpreet si said...

good post nice stuff here to read thanks earn online