OK, this is driving me crazy.
I Can't seem to get a data repeater to show data when I bind at runtime to either a data table or a binding source.
The repeater shows the correct number of rows, just no data.
I checked the data is there in the table.
Seems like this should be easy, I must be missing something simple.
I have it working setting up all of the binding at design time, but can't seem to get it to work at runtime.
I have tried the following, with and without virtual mode.
Please help!
Auguy
Sylvania/Toledo Ohio
I Can't seem to get a data repeater to show data when I bind at runtime to either a data table or a binding source.
The repeater shows the correct number of rows, just no data.
I checked the data is there in the table.
Seems like this should be easy, I must be missing something simple.
I have it working setting up all of the binding at design time, but can't seem to get it to work at runtime.
I have tried the following, with and without virtual mode.
Please help!
Code:
'This code is in the load of the form.
myDt = SelectRouting() 'SQL Proc
myBs = New BindingSource
myBs.DataSource = myDt
myBs.Sort = "prorefint, seqno"
txtVendName.DataBindings.Add("Text", myBs, "VendName")
DataRepeater2.DataSource = myBs
' OR
txtVendName.DataBindings.Add("Text", myDt, "VendName")
DataRepeater2.DataSource = myDt
Auguy
Sylvania/Toledo Ohio