Dynamic Datamember

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • OpticTygre

    Dynamic Datamember

    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_Cli ck(ByVal sender As System.Object, ByVal e As
    System.EventArg s) Handles btnGenerate.Cli ck

    Dim TestForm As New frmTemp
    TestForm.DS.Rea dXmlSchema(txtP ath.Text)
    TestForm.DGrid. DataSource = TestForm.DS
    TestForm.DGrid. DataMember = "Person"
    TestForm.ShowDi alog()

    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


Working...