Getting the folowing error when loading a pocket PC form...
Error:
"DataRowView to type String is not valid"
Code:
Dim xtrXML As New XmlTextReader(FsXML)
statesDS.ReadXml(xtrXML)
xtrXML.Close()
FsXML.Close()
' Get a DataTable to conveniently use for binding.
Dim dt As DataTable = statesDS.Tables("ListStop")
Try
'Bind the combobox
cboStops.DataSource = dt
cboStops.ValueMember = "StopID"
cboStops.DisplayMember = "StopDes"
Source:
<?xml version="1.0" encoding="UTF-8"?>
<dataroot xmlnsd="urn:schemas-microsoft-comfficedata" xmlns:xsi=" xsi:noNamespaceSchemaLocation="ListStop.xsd">
<ListStop>
<StopID>1</StopID>
<StopDes>Forest Lake Shops</StopDes>
</ListStop>
<ListStop>
<StopID>2</StopID>
<StopDes>Grand Ave Forest Lake</StopDes>
</ListStop>
</dataroot>
Any ideas?????
Error:
"DataRowView to type String is not valid"
Code:
Dim xtrXML As New XmlTextReader(FsXML)
statesDS.ReadXml(xtrXML)
xtrXML.Close()
FsXML.Close()
' Get a DataTable to conveniently use for binding.
Dim dt As DataTable = statesDS.Tables("ListStop")
Try
'Bind the combobox
cboStops.DataSource = dt
cboStops.ValueMember = "StopID"
cboStops.DisplayMember = "StopDes"
Source:
<?xml version="1.0" encoding="UTF-8"?>
<dataroot xmlnsd="urn:schemas-microsoft-comfficedata" xmlns:xsi=" xsi:noNamespaceSchemaLocation="ListStop.xsd">
<ListStop>
<StopID>1</StopID>
<StopDes>Forest Lake Shops</StopDes>
</ListStop>
<ListStop>
<StopID>2</StopID>
<StopDes>Grand Ave Forest Lake</StopDes>
</ListStop>
</dataroot>
Any ideas?????