Results 1 to 3 of 3

Thread: Expanding a Datagrid

  1. #1

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

    Expanding a Datagrid

    If am using an XML document to load a datagrid..

    ds.ReadXMl(sb.ToString())
    dgXml.DataSource=ds
    dgXml.TableStyles.Add ( XmlStyle )
    dgXml.Expand(0)

    When the grid is loaded it is not "fully open" (see attached image) and I have to click the "item" to fully expand to the final dataset. What am I missing??

    Thanks....
    Attached Images Attached Images  
    William E Gollnick

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    If you want to select a specific table in the dataset use that table as the dataset.
    VB Code:
    1. ds.ReadXMl(sb.ToString)
    2. dgXml.DataSource=ds[b].Tables(0)[/b]
    3. dgXml.TableStyles.Add ( XmlStyle )
    4. dgXml.Expand(0)

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2002
    Location
    Hendersonville , NC
    Posts
    260
    The best .. thanks......
    William E Gollnick

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