Click here to Skip to main content
15,795,793 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
firstly i want a gridview with tow columns having blank text box and when user fill those text boxes all data should save in sql server table. and button should be out side or in footer.
Maciej Los 8-Aug-13 16:34pm    
What have you done so far? Where are you stuck?
Please, be more specific and provide more details...

1 solution

in the button click
TextBox textname;
TextBox textname2;
   foreach (GridViewRow row in GridViewName.Rows)
            textname= (TextBox)row.Cells[0].FindControl("TextBoxName");
            textname2 = (TextBox)row.Cells[1].FindControl("TextBoxName");
            // do here whatever you want :)

type the number of the cell here as you make it in the grid .
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900