Author: MarkBrend | Posted on: 12/8/2009 6:16:26 AM | Views : 271

Textbox1 does not exist when the gridview is in read mode
But does exist when in edit mode
Ref" /></td><td><input name="ctl00$ContentPlaceHolder1$GridView2$ctl02$ctl03" type="text" title="Description" /></td><td>
<input name="ctl00$ContentPlaceHolder1$GridView2$ctl02$TextBox1" type="text"  <========WHEN IN EDIT MODE      id="ctl00_ContentPlaceHolder1_GridView2_ctl02_TextBox1" />
 
The error occurs when I click the (edit link/button in the gridview) which would indicate that the CustomerValidator is firing before the gridview row has entered edit mode.
Is there a way of configuring the customerValidator control to fire after the gridview row has been re-created in edit mode?
Extra info:-
    protected void GridView2_RowDataBound(object sender, GridViewRowEventArgs e)   ...

Go to the complete details ...