I have the following situation:
-A basic VB app with a single DataRepeater
-The data repeater is connected to an Access Table Via Binding Source -> Data Set
I have three fields ID, Description, PDFExists
On the data repeater, I have two txt boxes and a button.
-Txt boxes for ID and Description
-Button "View PDF"
I want to make it so that if PDFExists equals True, the button is Visible, if False, the button is Not Visible
I already have code setups the button link (essentially sets the button Tag to the unique ID number), see attached, and that works fine.
Any suggestions on how to handle showing the button. I suspect that if I added a text box for PDFExists, and checked it's text, I could easily accomplish this, but I would prefer to access the data directly.
Private Sub DataRepeater1_DrawItem(ByVal sender As Object, ByVal e As Microsoft.VisualBasic.PowerPacks.DataRepeaterItemEventArgs) Handles DataRepeater1.DrawItem
btnViewPDF.Tag = e.DataRepeaterItem.Controls(NumTextBox.Name).Text