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. Mobile Development
  3. Mobile
  4. How populate a DataGrid (C.F 2.0 and VB.net)

How populate a DataGrid (C.F 2.0 and VB.net)

Scheduled Pinned Locked Moved Mobile
csharpdata-structureshelptutorial
3 Posts 2 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.
  • H Offline
    H Offline
    Hurricane3000
    wrote on last edited by
    #1

    Hi all, I'm find some problem to bind a simple String Array (NamesWpt()) with a Datagrid (DataGrid1). The only result I obtained with this simple code line: DataGrid1.DataSource = NamesWpt is to populate the DataGrid with length of strings contained in Array (NamesWpt()). And the name column is been named "Length". How to see contained Names? Is it possible to bind a multi-column DataGrid with a multi dimensional array? Thanks Marco

    A 1 Reply Last reply
    0
    • H Hurricane3000

      Hi all, I'm find some problem to bind a simple String Array (NamesWpt()) with a Datagrid (DataGrid1). The only result I obtained with this simple code line: DataGrid1.DataSource = NamesWpt is to populate the DataGrid with length of strings contained in Array (NamesWpt()). And the name column is been named "Length". How to see contained Names? Is it possible to bind a multi-column DataGrid with a multi dimensional array? Thanks Marco

      A Offline
      A Offline
      Arjun Marwaha
      wrote on last edited by
      #2

      You would need to create an ArrayList, add any number of classes having n number of properties you want to the ArrayList and bind it to DataGrid. To bind an Arraylist to a DataGrid, refer the link below: http://www.c-sharpcorner.com/UploadFile/mahesh/ArrayListBinding10212005102338AM/ArrayListBinding.aspx ~Dave

      Dave Traister Software Engineer ComponentOne LLC www.ComponentOne.com

      H 1 Reply Last reply
      0
      • A Arjun Marwaha

        You would need to create an ArrayList, add any number of classes having n number of properties you want to the ArrayList and bind it to DataGrid. To bind an Arraylist to a DataGrid, refer the link below: http://www.c-sharpcorner.com/UploadFile/mahesh/ArrayListBinding10212005102338AM/ArrayListBinding.aspx ~Dave

        Dave Traister Software Engineer ComponentOne LLC www.ComponentOne.com

        H Offline
        H Offline
        Hurricane3000
        wrote on last edited by
        #3

        Thanks for reply Dave, I visited page you suggested me, and surely I'll can get some guideline. Marco

        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