Set Gridview Template Column Controls Attributes
Posted on 2007-04-09
I have a gridview that contains numerous template columns. In the EditItemTemplate, I have a textbox with the id of Textbox1. When working with the control in design mode, it is identified as GridView1.Column8Note.EditItemTemplate.TextBox1 however, when I use that same id in the code behind, it doesn't find it. What I need to do is to dynamically change the maxlength attribute of this textbox control based on control data returned. How can I do this in the code behind?