By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,581 Members | 1,811 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,581 IT Pros & Developers. It's quick & easy.

Dynamic Datamember

P: n/a
Ok, kindof new to the whole XML schema stuff, but here's what I'm trying to
do. I have a form that reads an xml schema into a dataset on another form,
then fills in the headers of a datagrid based on that dataset:

Private Sub btnGenerate_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnGenerate.Click

Dim TestForm As New frmTemp
TestForm.DS.ReadXmlSchema(txtPath.Text)
TestForm.DGrid.DataSource = TestForm.DS
TestForm.DGrid.DataMember = "Person"
TestForm.ShowDialog()

End Sub

The problem is, I'd like it to be able to handle any schema passed into it.
So how can I set the Datamember dynamically based upon the XML Schema read
in? Is it possible?

TIA,
Jason
Feb 11 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.