Datagrid and Gridview in Asp.net
ASP.NET version 1.x have one most commonly used Web controls that is DataGrid. DataGrid control helps to display data on an ASP.NET page just like a breeze. we can simply drag and drop the DataGrid on our webpage, we can also specify columns/fields and we can also format that fields and columns. There are some feature of DataGrid that’s helps end user to page, sort, and even edit the data within the DataGrid.
After that DataGrid takes a huge improvement over pre-ASP.NET techniques for showing data,But have some limitations till now. For starters, binding any data to a DataGrid still required some code to written, and often repetitive code at that. And something more that how to utilize any of the DataGrid more advanced features—handling deletes, providing pagination, or sorting support—required additional code and time.
ASP.NET 2.0 gernate through a set of data some of the facilities, rehabilitation DataGrid control is used to manage the source of the problem, you can bind to the data Web control the data in the GridView with ASP.NET access to data in the replacement of control.For DataGrid 1.x, developers need some data source controls code.with with the help of the data can be easily page.The through the ASP.NET Web page HTML data source controls to access some of the simple syntax that can be added to the page, Just dragg and drop.And, the specific data retrieval, you can specify the design view completely. Once a data source control sholud configuration, it can be easily bound to a data Web controls, like the GridView by setting the data Web control's DataSourceID property of the data source control's ID.
Data source controls in ASP.NET 2.0 access data with quicker and easier with compare to to ASP.NET version 1.x.GridView also makes showing that data much simpler than with the DataGrid in ASP.NET version 1.x.
With the GridView you can specify that data is sortable and / or pageable by simply checking a checkbox.This process is also when Delete column.
To know more about visiting asp net interview questions – dotnetquestion.info
