using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; namespace WebApplication1 { public partial class _Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { TextBox txt1 = e.Row.FindControl("TextBox1") as TextBox; TextBox txt2 = e.Row.FindControl("TextBox2") as TextBox; TextBox txt3 = e.Row.FindControl("TextBox3") as TextBox; TextBox txt4 = e.Row.FindControl("TextBox4") as TextBox; TextBox txt5 = e.Row.FindControl("TextBox5") as TextBox; TextBox txt6 = e.Row.FindControl("TextBox6") as TextBox; TextBox txt7 = e.Row.FindControl("TextBox7") as TextBox; TextBox txt8 = e.Row.FindControl("TextBox8") as TextBox; TextBox txt9 = e.Row.FindControl("TextBox9") as TextBox; TextBox txt10 = e.Row.FindControl("TextBox10") as TextBox; TextBox txt11 = e.Row.FindControl("TextBox11") as TextBox; TextBox txt12 = e.Row.FindControl("TextBox12") as TextBox; TextBox txt13 = e.Row.FindControl("TextBox13") as TextBox; TextBox txt14 = e.Row.FindControl("TextBox14") as TextBox; TextBox txt15 = e.Row.FindControl("TextBox15") as TextBox; TextBox txt16 = e.Row.FindControl("TextBox16") as TextBox; } } } }