|
-
Jul 16th, 2003, 08:38 PM
#1
Thread Starter
Hyperactive Member
dataset and xml....possible?
rather than loading my xml file and it's different attributes into a multidemensional array, is it possible to load the xml file into a dataset? i noticed that is has a "getxml" property in the dataset...
i would like to load the xml file into the dataset on formload and bind a combobox and multiple textboxes to the dataset reading differerent attributes from the dataset... is this possible?
-
Jul 16th, 2003, 09:14 PM
#2
VB Code:
Dim ds As New DataSet
ds.ReadXML("..\data.xml")
-
Jul 16th, 2003, 10:00 PM
#3
Thread Starter
Hyperactive Member
thanks figured it out
if anyone is interested on how to bind the contols...
oDataset.ReadXml(Application.StartupPath & "\connections.xml")
cboDescription.DisplayMember = "settings_Text"
cboDescription.DataSource = oDataset.Tables("settings")
txtAddr.DataBindings.Add("text", oDataset.Tables("settings"), "host")
txtUsr.DataBindings.Add("text", oDataset.Tables("settings"), "username")
txtPwd.DataBindings.Add("text", oDataset.Tables("settings"), "password")
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|