GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Microsoft  >  ASP.NET 2.0
Go To First  |  Previous Question  |  Next Question 
 ASP.NET 2.0  |  Question 127 of 161    Print  
what is the difference between the datagrid and grid view ?

  
Total Answers and Comments: 1 Last Update: September 26, 2007     Asked by: srujana 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
September 26, 2007 14:18:27   #1  
vaibhav Tyagi        

RE: what is the difference between the datagrid and gr...
GRID VIEW
The Gridview is the most used control to display data in a tabular format.
By default it supports major features like sorting paging.
However it does not support multiple sorting.
DATAGRID 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.

DATAGRID
In ASP.NET 2.0 the DataGrid control has been enhanced to support common control features
such as themes and personalization. In addition the new DataGrid control can be populated
by a data source control. Remember though that a DataGrid can only bind to a data source
object for the purpose of reading data. To actually modify the underlying data source
some user-defined code is still required.
GRIDVIEW
In contrast the GridView control takes advantage
of the capabilities of the underlying data source and automatically deletes or updates records.
Note that the GridView control also supports the classic binding mechanism based on the
DataSource property and the DataBind method. Although fully supported
this programming practice is discouraged.

 
Is this answer useful? Yes | No

 Related Questions

What is the difference between Server.Transfer and Response.Redirect? Why would I choose one over the other?

Latest Answer : Dataset can represent an entire database in memory with full of tables,views and relations.Dataset is bulk loaded rather than loaded on demand.Dataset is designed to work without a continuing connection to the original datasource.There is no concept of ...

Latest Answer : Differneces between Single Call & Singleton.Single Call objects service one and only one request coming in. Single Callobjects are useful in scenarios where the objects are required to do afinite amount of work. Single Call objects are usually not required ...

Latest Answer : ORELSE - Either of the two expressions is true. If the first expression is True, the second is not evaluated. - ex. are from http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vblr7/html/valrfOrElseOperator.aspDim A As Integer = 10Dim B ...

Latest Answer : Classic ASP uses inline code. HTML and asp code are embedded in the same file. (.asp)One of the enhancements in ASP.NET framework is seperation of HTML code (UI) and the code behind that web page (.cs file). This is easier to maintain and ...

Latest Answer :           

Latest Answer : asp:hyperlinkfield ... ...

Latest Answer : CurrentPageIndex Property ...

Latest Answer : AutoGenerateColumns="False" ...

Latest Answer : convert textbox column into a template then it lets you change its width ...
Read Answers (1) | Asked by : mdchaus


 Sponsored Links

 
Related Articles

ODP.NET - Retrieving Multiple Rows on to the Grid

ODP NET Retrieving Multiple Rows on to the Grid In the previous section we tried to retrieve only one row using OracleDataReader In this section we will try to retrieve more than one row or a result set and populate a DataGridView on a WinForm mosgoogle The following code lists out the details of al
 

What is a view

A view is nothing but a window of an existing table by which one can view and can also change the values in tables. The main point aspect of view is views have no storage space. For this reason views are also called as virtual tables. Thus in other words a view is a database object that gives a logi
 

What is difference between call by value and call by reference in function?

The arguments passed to function can be of two types 1. Values passed 2. Address passed The first type refers to call by value and the second type refers to call by reference. For instance consider program1 main() { int x=50, y=70; interchange(x,y); printf(“x=%d y=%d”,x,
 

The Interview Snafu

How to turn someone else’s mistake to your advantage Your dream job is about to become reality. A recruiter gave you the heads up about the perfect position at Humungous Conglomerate, Inc. You went through five interviews as well as a battery of psychological tests mandated by their HR de
 

Winning a Job Interview with a Winning Resume

Does your resume unlock your potential, take your skills to the highest level and win you the interview and the job you want now? The job market today is highly competitive and even if you think you have what it takes to get an interview you won’t get over the line without a polished, prof
 

Importance of Proper English during Job Interview

Importance of Proper English during Job Interview Your job interview is crucially important and it will determine whether or not you will get the job Depending on the type of job you re going for it is very important for you to use proper English In most cases jobs which offer higher salaries will h
 

Difference between Scholarship and Grant

Difference between Scholarship and Grant While both scholarships and grants allow students to pay for their tuition without having to pay the money back there are a number of key differences between the two Knowing the difference between grants and scholarship will make it much easier for students t
 

HR Interview - HR Interview Mistakes You Will Want To Avoid

HR Interview Mistakes You Will Want To Avoid The job interview can be a stressful process This is especially true for those who are going after a competitive position Your nonverbal communication combined with the answers you give during the interview will determine if you are hired mosgoogle While
 

HR Interview - Behavioral HR Interviews

Behavioral HR Interviews As the name implies a behavioral interview is an interview that is held by a human resources department to determine if an applicant has the behaviors that are appropriate for a job The company must know how an applicant will behave in a certain situations mosgoogle The logi
 

HR Interview - How To Prepare For Your HR Interview

How To Prepare For Your HR Interview Before you begin thinking about how you are going to dress for the interview it is important to do your research first You should learn everything you can about the company you wish to work for When you have detailed information about your employer you will conve
 

About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape