Support us .Net Basics C# SQL ASP.NET Aarvi MVC Slides C# Programs Subscribe Download

Datagrid in asp.net - Part 1

Suggested Video Tutorials
Dot Net Basics
C# video tutorial
asp.net video tutorial
Sql server video tutorial



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.

15 comments:

  1. Hi sir g!!!
    Sir G please reply when you up load WPF and WCF series please reply..........

    ReplyDelete
    Replies
    1. Hi, I will try and record WCF and WPF as soon as I can. After we are done with gridview tutorial, we will start with MVC, followed by WCF and then WPF. Thank you very much for your patience and understanding.

      Delete
    2. Sir,

      Could you please upload WPF related Tutorials.

      Meanwhile your sessions on Bootstrap and ASP.NET were of great help for me as a self learning guy looking for better career in Software development .. Thanks a lot Sir

      Delete
  2. Hi Venkat,
    Just a request, kindly cover other data bound controls (datalist,listview,repeater ,formview etc) as well along with the gridview tutorials.
    I like your current approach of few videos on each topic/technology, this way we can get a feel of each technology simultaneously. Please continue the same.
    Eagerly awaiting for MVC,WCF and WPF tutorials.

    Thanks,
    Rohan

    ReplyDelete
    Replies
    1. Hi Rohan, I will surely cover the rest of the databound controls mentioned by you.

      Delete
  3. Hi Sir,

    I am requesting you please upload LINQ series.

    ReplyDelete
  4. Hi Venkat,

    This is Chandu,Thank you very much for one more series of asp.net
    video tutorials.My sincere request is that dont stop posting the
    videos in the middle. because so many people are fallowing ur videos . plese consider viewers request as soft as possible.dont take it as a burden, if you have a time please cover all the topics
    which was requested by viewers.

    thanks
    chandu

    ReplyDelete
  5. HI venkat,

    Thank You sir giving this videos,I am requesting you please upload Gridview bind without any datasource with all TemplateFields.

    thanks
    venkat.B


    ReplyDelete
    Replies
    1. Sure, in fact in real time, most of the time everything is done using code. Will record and upload few videos as soon as I can.

      Please subscribe to my channel using the link below, if you want to receive an email when I upload new videos.
      http://youtube.com/kudvenkat

      All .NET videos are organised into playlists at the following link. Hope you will find it useful.
      http://www.youtube.com/view_all_playlists

      Delete
  6. HI venkat,

    Thank You sir giving this videos,I am requesting you please upload project on dotnet.

    thanks
    kalyan

    ReplyDelete
  7. Hi Sir,

    Waiting for WCF and WPF series.
    Sir you have made my life easy by your incredible tutorials.
    Thousand Thanks

    Best Regards,
    Niranjan N T

    ReplyDelete
  8. hello sir iam big fan is there any openings for dotnet i need a job sir please help

    ReplyDelete
  9. hi.I am a dot net developer.I visited your website.Its useful for people.You displayed one coding,Please display the corresponding output for the coding.So that people can understand.

    ReplyDelete
  10. Dear venkat, i want to ask which is the best way to retrieve data from database among ADO.Net, Entity Framework or Linq

    ReplyDelete
  11. Sir Need Crystal Report series please help

    ReplyDelete

It would be great if you can help share these free resources