Datagrid in asp net Part 1



Datagrid in asp net Part 1

Datagrid in asp net   Part 1

If you are a foodie like me, I am sure you will enjoy the recipes on my friend’s YouTube channel. If you find them useful, please subscribe and share to support her. She’s really good at what she does.
https://www.youtube.com/channel/UC7sEwIXM_YfAMyonQCrGfWA

Text version of the video
http://csharp-video-tutorials.blogspot.com/2013/02/datagrid-in-aspnet-part-1.html

Slides
http://csharp-video-tutorials.blogspot.com/2013/10/part-1-datagrid-in-aspnet.html

All GridView Text Articles
http://csharp-video-tutorials.blogspot.com/p/free-asp.html

All GridView Slides
http://csharp-video-tutorials.blogspot.com/p/blog-page.html

All Dot Net and SQL Server Tutorials in English
https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd

All Dot Net and SQL Server Tutorials in Arabic
https://www.youtube.com/c/KudvenkatArabic/playlists

In this video, we will discuss about
1. The difference between datagrid and gridview controls
2. What to choose datagrid or gridview

Difference between DataGrid and GridView
1. DataGrid is introduced in asp.net 1.1 and is still supported today. GridView is introduced in asp.net 2.0.
2. Declarative datasource controls can be used with DataGrid only for data selection. Tasks like paging, sorting, deletes and updates must be done in code. The GridView control can achieve all of these using the declarative datasource controls.
3. GridView introduces new column types.

What to choose datagrid or gridview
If you are using asp.net 2.0 or later, I personally suggest using gridview over datagrid control.

DataGrid control is not found in visual toolbox?
If you are using visual studio 2008 or later versions, by default DataGrid control is not shown in the visual studio toolbox. If you want the datagrid control, to appear in visual studio toolbox, follow these steps
1. Right click on toolbox, and select “Choose Items”
2. From “Choose Toolbox Items” dialog box, select “DataGrid” that is present in “System.Web” assembly.
3. Finally click OK. You should now see “DataGrid” control in visual studio toolbox.

Comments are closed.