DataMember property 'ID' cannot be found on the DataSource.

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
I am using a Treeview with a Master Details form. I have placed the ID under the treeview node and trying to use the following:
<span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small


<span style="font-size:small <span style="font-size:small Dim index <span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small As<span style="font-size:small <span style="font-size:small <span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small Integer<span style="font-size:small <span style="font-size:small =
MyBindingSource.Find(<span style="color:#a31515; font-size:small <span style="color:#a31515; font-size:small <span style="color:#a31515; font-size:small "ID"<span style="font-size:small <span style="font-size:small ,
TreeView6.SelectedNode.Tag)
<span style="font-size:small <span style="font-size:small
<span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small If<span style="font-size:small <span style="font-size:small index <> -1
<span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small Then
<span style="font-size:small <span style="font-size:small
MyBindingSource.Position = index
I get "DataMember property ID cannot be found on the DataSource".
I know from reading another post that I have to change the Binding Source to use FKBinding Source but under VS2010 Express, I only seem to have 1 choice of Binding Source under DataSource ?
<span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small <span style="color:#0000ff; font-size:small <span style="font-size:small <span style="font-size:small


View the full article
 
Back
Top