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. Visual Basic
  4. I can use arraylist variable to fill datagrid?

I can use arraylist variable to fill datagrid?

Scheduled Pinned Locked Moved Visual Basic
questiontutorial
4 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.
  • J Offline
    J Offline
    jlizardo
    wrote on last edited by
    #1

    I can use arraylist variable to fill datagrid?. This is my question. Because is not working. example. dim t as new arraylist t.add(one) t.add(two) t.add(three) datagrid1.datasource = t This code must be works? Johnny Lizardo

    M 1 Reply Last reply
    0
    • J jlizardo

      I can use arraylist variable to fill datagrid?. This is my question. Because is not working. example. dim t as new arraylist t.add(one) t.add(two) t.add(three) datagrid1.datasource = t This code must be works? Johnny Lizardo

      M Offline
      M Offline
      Mike Ellison
      wrote on last edited by
      #2

      Well, the DataGrid.DataSource property can take objects that implement the IList interface, so an ArrayList should be fine. Can you post the actual code and exception message you're getting?

      J 1 Reply Last reply
      0
      • M Mike Ellison

        Well, the DataGrid.DataSource property can take objects that implement the IList interface, so an ArrayList should be fine. Can you post the actual code and exception message you're getting?

        J Offline
        J Offline
        jlizardo
        wrote on last edited by
        #3

        Look. Right now I'm not in my machine. For this reason i can't send to you all code with exception. But The code i'm already posted don't help you? Johnny

        M 1 Reply Last reply
        0
        • J jlizardo

          Look. Right now I'm not in my machine. For this reason i can't send to you all code with exception. But The code i'm already posted don't help you? Johnny

          M Offline
          M Offline
          Mike Ellison
          wrote on last edited by
          #4

          Well, I can tell what you're generally trying to do, but it's not clear exactly where you are getting an error. If you would like to post the details of the error you're getting (and any additional code that would help to make sense of it), I'd be in a better position to help.

          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