VB.Net - Loop putting Data in a Label or Textbox
Posted on 2013-05-29
Good Day Experts!
I have a longer running Select statement that I display in a DataGridView. It runs for a "while" so I want to keep the User company by displaying data from each record in a label or textbox on the form. However, that is not the problem I am faced with. Issue is I can't get the data to show in the control!
Here is what I have:
Dim AccountNumber As String = rdrGetAccountNumbers.Item("Account Number")
lblAccountIC.Text = AccountNumber
txtAcctNum.Text = AccountNumber
When stepping through the code and I hover over lblAccountIC.Text and txtAcctNum.Text the data is there...it just isn't showing on the screen.
I am probably totally missing something very simple, but what do you think?