Results 1 to 4 of 4

Thread: Datagrid and XML document

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2002
    Location
    Hendersonville , NC
    Posts
    260

    Datagrid and XML document

    Attached is a simple xml document. I have been trying to bind this xml document to a datagrid BUT having little and no luck. Has anybody actually done this??
    Attached Files Attached Files
    William E Gollnick

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    How have you tried to do it? I haven't looked at the file but using a DataSet it should be like this:
    VB Code:
    1. Dim ds As new Dataset
    2. ds.ReadXML("pathtoxmlfile")
    3. DataGrid1.DataSource=ds

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2002
    Location
    Hendersonville , NC
    Posts
    260
    Thanks .. that is what I tried BUT my TableStyles.Add could not be inserted. So .. all I was/am getting in my datagrid is basically everything in the xml documrny. I want to be able to strip off the key / item text.

    thanks ..gollnick
    William E Gollnick

  4. #4
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    Add the tablestyles at designtime and make sure the mappingname property matches for the xml data to have the control apply it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width