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. Binding Two dimensional arrays to Datagrid

Binding Two dimensional arrays to Datagrid

Scheduled Pinned Locked Moved Visual Basic
questionwpfwcftutorial
7 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.
  • H Offline
    H Offline
    hsprasain
    wrote on last edited by
    #1

    Hey: I have my data in two dimensional arrays. I want to display those data in Datagrid. Can anybody guide me how can I do this? hsprasain

    S 1 Reply Last reply
    0
    • H hsprasain

      Hey: I have my data in two dimensional arrays. I want to display those data in Datagrid. Can anybody guide me how can I do this? hsprasain

      S Offline
      S Offline
      Sathesh Sakthivel
      wrote on last edited by
      #2

      Hopr the Article by Mihail Stefanov here[^] in CP will Help you.

      Regards, Satips.:rose:

      H 1 Reply Last reply
      0
      • S Sathesh Sakthivel

        Hopr the Article by Mihail Stefanov here[^] in CP will Help you.

        Regards, Satips.:rose:

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

        I need to slove my problem in VB.NET not in C#

        T S D 3 Replies Last reply
        0
        • H hsprasain

          I need to slove my problem in VB.NET not in C#

          T Offline
          T Offline
          TwoFaced
          wrote on last edited by
          #4

          The article supplied contains a library that will create a proper datasource from a multi-dimensional array. Just download the .dll and add a reference to it. You can then use it like this:

              Dim test(2, 2) As String
              test(0, 1) = "SomeData"
              test(0, 2) = "SomeOtherData"
              DataGridView1.DataSource = New Mommo.Data.ArrayDataView(test)
          
          H 1 Reply Last reply
          0
          • H hsprasain

            I need to slove my problem in VB.NET not in C#

            S Offline
            S Offline
            Sathesh Sakthivel
            wrote on last edited by
            #5

            I have given the Idea with the help of that article. I cannot do your work. Please do the work and if there is any problem we can guide you.

            Regards, Satips.:rose:

            1 Reply Last reply
            0
            • H hsprasain

              I need to slove my problem in VB.NET not in C#

              D Offline
              D Offline
              Dave Kreskowiak
              wrote on last edited by
              #6

              The code is easily convetible to VB.NET. If you want a translation guide, all you have to do is look in the documentation on MSDN. Nearly every single code sample for any class, method, or property, comes written in VB.NET and C#. All you have to do is compare the two to learn the syntax.

              A guide to posting questions on CodeProject[^]
              Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                   2006, 2007

              1 Reply Last reply
              0
              • T TwoFaced

                The article supplied contains a library that will create a proper datasource from a multi-dimensional array. Just download the .dll and add a reference to it. You can then use it like this:

                    Dim test(2, 2) As String
                    test(0, 1) = "SomeData"
                    test(0, 2) = "SomeOtherData"
                    DataGridView1.DataSource = New Mommo.Data.ArrayDataView(test)
                
                H Offline
                H Offline
                hsprasain
                wrote on last edited by
                #7

                Thanks a lot!! It worked well for me.

                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