Displaying Data From A DataRelation

  • Thread starter Thread starter Developer Dude
  • Start date Start date
D

Developer Dude

Guest
Hi:


I have the following code.



'Create Service-Service Type Data Relation.
Dim data_relation As New _
DataRelation("SE_ST", dsPSB.Tables("dtSE").Columns("SE_ST"), dsPSB.Tables("dtST_1").Columns("ST_KEY"), False)
dsPSB.Relations.Add(data_relation)

'Service Type Table BindingSource.
bsST_1.DataSource = bsSE
bsST_1.DataMember = dsPSB.Relations(0).RelationName

lblSE_ST_A.DataBindings.Add("Text", bsST_1, "ST_DESC")

I want to display "ST_DESC" which is in the child table, dtST_1. Can someone tell

me where my code is incorrect. Thanks.

Continue reading...
 

Similar threads

D
Replies
0
Views
139
Developer Dude
D
D
Replies
0
Views
90
Developer Dude
D
D
Replies
0
Views
106
Developer Dude
D
Back
Top