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. Web Development
  3. ASP.NET
  4. datagrid uses without databind? (am i nuts?)

datagrid uses without databind? (am i nuts?)

Scheduled Pinned Locked Moved ASP.NET
question
4 Posts 3 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
    JabraJabra
    wrote on last edited by
    #1

    hi, i got an app that uses 3-tier model. i transfer data between the model with ArrayList of Emp (contains name, id etc). now, i want to display the data in datagrid, but i cant do DataBind bcuz my data is in ArrayList, not DataSet. how can i create the datagrid myself without DataBinding? is there other alternative for me? Avi.

    G R 2 Replies Last reply
    0
    • J JabraJabra

      hi, i got an app that uses 3-tier model. i transfer data between the model with ArrayList of Emp (contains name, id etc). now, i want to display the data in datagrid, but i cant do DataBind bcuz my data is in ArrayList, not DataSet. how can i create the datagrid myself without DataBinding? is there other alternative for me? Avi.

      G Offline
      G Offline
      Gerald Leslie Jones
      wrote on last edited by
      #2

      Hi, You can very well set arraylist as a datasource to the datagrid. Thanks & Regards, Gerald Leslie

      J 1 Reply Last reply
      0
      • G Gerald Leslie Jones

        Hi, You can very well set arraylist as a datasource to the datagrid. Thanks & Regards, Gerald Leslie

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

        even if it's ArrayList of that contain objects (classes made by me)?

        1 Reply Last reply
        0
        • J JabraJabra

          hi, i got an app that uses 3-tier model. i transfer data between the model with ArrayList of Emp (contains name, id etc). now, i want to display the data in datagrid, but i cant do DataBind bcuz my data is in ArrayList, not DataSet. how can i create the datagrid myself without DataBinding? is there other alternative for me? Avi.

          R Offline
          R Offline
          R Senthil Kumaran
          wrote on last edited by
          #4

          i hope u can bind an array list directly to the datagrid not sure because arraylist implements the ienumerable and ilistsouorce hence i think u can else createa datatable and fill the data from the array list by looping it to the datatable this you can do and this will work!! try! Loving Code, R. Senthil Kumaran

          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