How to get all the textBoxes in the UserControl added into GridView
On the Page, I add UserControl into GridView dynamically. So, each UserControl can contain different kind of controls ( TextBox, CheckBox, Radio Button) say , the name of UserControl is : UserForm. problem : How to get a collection of control using VisualTreeHelper and check if textBox is empty. I found a code similiar to this problem and modified it but not working. I dont know what this means and if this is required? list.AddRange(AllTextBoxes(child)) Should I use MyList.Select() or MyList.Where() ? void FindTextBoxes() { List <TextBox> MyList = AllTextBoxes(UserForm); var count = MyList