Link to home
Start Free TrialLog in
Avatar of Plucka
PluckaFlag for Australia

asked on

Datagrid Question

Hi,

I'm returing a dataset from a webservice to a Datagrid using:

        dsOut.ReadXml(stream)
        DataGrid1.DataSource = dsOut

When the grid populates, I see one item called "item" with a plus sign, expanding this gives me the data I want, how do avoid the initial item being displayed and automatically expand to "item"

Regards
Plucka
ASKER CERTIFIED SOLUTION
Avatar of Rick Becker
Rick Becker
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Plucka

ASKER

Ahh,

Yes good food, did make me think about specifying the node on the dataset.

This works.

DataGrid1.DataSource = dsOut.childNodes(1).Tables(0)

Regards
Plucka
Avatar of Plucka

ASKER

Sorry,

I mean this.

DataGrid1.DataSource = dsOut.Tables(0)

Regards
Plucka
Hi Plucka,

Glad I could help. I have received plenty of help from EE myself. I am glad that I could return the favor.

Thanks, and have 'Fun'....


rrbecker