How to access controls inside DataRepeater

2019-08-02 08:57发布

问题:

I have 2 textBoxes inside WinForms DataRepeater (Microsoft.VisualBasic.PowerPacks.DataRepeater) and a button

When the button is clicked, I want to access these textBoxes

How can I achieve this?

回答1:

dataRepeater1.CurrentItem.Controls["TextBox1"].Text