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. Reading the data of Datagrids

Reading the data of Datagrids

Scheduled Pinned Locked Moved Visual Basic
questiondata-structureshelptutorial
5 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 all: Can you help how to read the data of Datagrids? More concisely, I have loaded some data to datagrids. Now I want to read each elements of datagrids and want to store in some datastrutures( two dimensional array) or other, if possible. Can any body help me how can I achieved this?

    T G Z 3 Replies Last reply
    0
    • H hsprasain

      Hey all: Can you help how to read the data of Datagrids? More concisely, I have loaded some data to datagrids. Now I want to read each elements of datagrids and want to store in some datastrutures( two dimensional array) or other, if possible. Can any body help me how can I achieved this?

      T Offline
      T Offline
      Tamimi Code
      wrote on last edited by
      #2

      can i ask you how you filled this grid with your data ??

      When you get mad...THINK twice that the only advice Tamimi - Code

      1 Reply Last reply
      0
      • H hsprasain

        Hey all: Can you help how to read the data of Datagrids? More concisely, I have loaded some data to datagrids. Now I want to read each elements of datagrids and want to store in some datastrutures( two dimensional array) or other, if possible. Can any body help me how can I achieved this?

        G Offline
        G Offline
        Guffa
        wrote on last edited by
        #3

        Why don't you read the data from the data sources that you used to populate the grids?

        --- single minded; short sighted; long gone;

        H 1 Reply Last reply
        0
        • G Guffa

          Why don't you read the data from the data sources that you used to populate the grids?

          --- single minded; short sighted; long gone;

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

          Thanks! Datagrid1.item(row,col) works me.

          1 Reply Last reply
          0
          • H hsprasain

            Hey all: Can you help how to read the data of Datagrids? More concisely, I have loaded some data to datagrids. Now I want to read each elements of datagrids and want to store in some datastrutures( two dimensional array) or other, if possible. Can any body help me how can I achieved this?

            Z Offline
            Z Offline
            Zia Ul Haq Soofi
            wrote on last edited by
            #5

            There are two different ways: 1. is DataGrid.Item(rowindex as Integer, columnindex as Integer) to access (read/write)the value of DataGrid's particular item. 2. is concept based, i.e. Data Grid itself has no rows and columns, it just displays the values of DataSet or DataTable. It means each data grid has dataset or data table, you just need to detach that data set or data table. In order to do that you have to cast the DataSource Property of DataGrid into data table or data set. Dim dt as DataTable dt = Cast(DataGrid.DataSource, DataTable) Now everything is in you hand, mess with them. Hope this will clear your concept.

            Be a part of solution, rather then be a part of problem

            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