I am trying to use an Update Command within my GridView. I need to find the "FindControl" for the Edit Command textboxes.
Ie. When the user clicks the Edit button, the row is populated with dropdown boxes, textboxes, etc for editting. Then when the user clicks on Update (button) and the GridView1_RowCommand function is activated with 'if (e.CommandName == "Update")' statement with my FindControl. etc. and my sql UPDATE command statements are used. How do I convert my FooterRow info to my Edit FINDCONTROL info?
This is what I have:
protected void GridView11_RowCommand(Object sender, GridViewCommandEventArgs e)
if (e.CommandName == "Update")
//EXAMPLE - GETTING FOOTERROW DATA (HOW DO I GET EDIT ROW DATA TO HELP ME WITH UPDATE?)
GridViewRow footer = GridView1.FooterRow;
ddCityXXX = footer.FindControl("ddCityXXXInsert") as DropDownList;
ddOvernightLSN = footer.FindControl("ddOvernightLSNInsert") as DropDownList;
txtHotelName = footer.FindControl("txtHotelNameInsert") as TextBox;
txtHotelAdd = footer.FindControl("txtHotelAddI") as TextBox;
txtHotelCity = footer.FindControl("txtHotelCityI") as TextBox;
txtHotelState = footer.
View Complete Post