Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Datagrid vs datagridview

Datagrid vs datagridview

Scheduled Pinned Locked Moved C#
csharpvisual-studioquestion
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    phokojoe
    wrote on last edited by
    #1

    I was using Visual studio 2003 to develop windows applications in c#. Now I have moved to Visual studio 2005. I wanted to use Datagrid in my application but the only thing I see is what is called datagridview. Are these two the same, if yea can I use the same code to populate a datagridview?:rolleyes:

    phokojoe

    S S 2 Replies Last reply
    0
    • P phokojoe

      I was using Visual studio 2003 to develop windows applications in c#. Now I have moved to Visual studio 2005. I wanted to use Datagrid in my application but the only thing I see is what is called datagridview. Are these two the same, if yea can I use the same code to populate a datagridview?:rolleyes:

      phokojoe

      S Offline
      S Offline
      Sandeep Akhare
      wrote on last edited by
      #2

      phokojoe wrote:

      Now I have moved to Visual studio 2005. I wanted to use Datagrid in my application but the only thing I see is what is called datagridview.

      Yes because GridView has replaced Datagrid the GridView control is the successor to the DataGrid control. Yes try it out http://msdn2.microsoft.com/en-us/library/ms972948.aspx[^] http://gridviewguy.com/CategoryDetails.aspx?categoryID=7[^]

      Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "

      A 1 Reply Last reply
      0
      • S Sandeep Akhare

        phokojoe wrote:

        Now I have moved to Visual studio 2005. I wanted to use Datagrid in my application but the only thing I see is what is called datagridview.

        Yes because GridView has replaced Datagrid the GridView control is the successor to the DataGrid control. Yes try it out http://msdn2.microsoft.com/en-us/library/ms972948.aspx[^] http://gridviewguy.com/CategoryDetails.aspx?categoryID=7[^]

        Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "

        A Offline
        A Offline
        andre_swnpl
        wrote on last edited by
        #3

        They are not exactly the same. DataGridView replaced DataGrid in Dot net 2.0. Although DataGrid is still available for use. It is apparently not available through the IDE but you can still create a DataGrid in your code should you wish but you should considder using DataGridView instead. [Modify] You can add it to the IDE if you right-click on toolbox and select choose items.

        1 Reply Last reply
        0
        • P phokojoe

          I was using Visual studio 2003 to develop windows applications in c#. Now I have moved to Visual studio 2005. I wanted to use Datagrid in my application but the only thing I see is what is called datagridview. Are these two the same, if yea can I use the same code to populate a datagridview?:rolleyes:

          phokojoe

          S Offline
          S Offline
          Scott Dorman
          wrote on last edited by
          #4

          DataGridView is the replacement for DataGrid, but they are not the same. The DataGridView doesn't support displaying data in a hierarchical manner. The code you used to populate the DataGrid should work just fine to populate the DataGridView.

          ----------------------------- In just two days, tomorrow will be yesterday.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups