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. Data Grid

Data Grid

Scheduled Pinned Locked Moved Visual Basic
questioncssxml
2 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.
  • G Offline
    G Offline
    GrindAZ
    wrote on last edited by
    #1

    I want to load a data grid with data in an XML file. I know i can do this with the ReadXML method of a dataset and then set the DataSource of the grid = to the dataset. But how do I take all the data in the grid and get it back into a dataset so I can save it back to XML format? Also how can you set the column widths for each column and do things like center the column headings and things like that?

    N 1 Reply Last reply
    0
    • G GrindAZ

      I want to load a data grid with data in an XML file. I know i can do this with the ReadXML method of a dataset and then set the DataSource of the grid = to the dataset. But how do I take all the data in the grid and get it back into a dataset so I can save it back to XML format? Also how can you set the column widths for each column and do things like center the column headings and things like that?

      N Offline
      N Offline
      Nick Seng
      wrote on last edited by
      #2

      When you databind your datagrid with a dataset, you are in fact setting up a "relationship" between the 2 objects. The changes done in the grid will be reflected to the dataset, so all you need to do is retain the dataset in memory. Notorious SMC


      The difference between the almost-right word & the right word is a really large matter - it's the difference between the lightning bug and the Lightning Mark Twain
      Get your facts first, and then you can distort them as much as you please Mark Twain

      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