i have one gridview contains edititemtemplate(which
contains update and cancel buttons) and i have one item
template (contains edit button)
i want the code for update and cancelbuttons in edit item
template and i want the code for edit button in
itemtemplate. please help me
Answer Posted / vishwaraj malik
write the following code
protected void GVAdvrtDetail_RowEditing(object sender,
GridViewEditEventArgs e)
{
GVAdvrtDetail.EditIndex = e.NewEditIndex;
}
protected void GVAdvrtDetail_RowCancelingEdit(object
sender, GridViewCancelEditEventArgs e)
{
GVAdvrtDetail.EditIndex = -1;
}
protected void GVAdvrtDetail_RowUpdating(object sender,
GridViewUpdateEventArgs e)
{
}
use findcontrol to update the recoed..
| Is This Answer Correct ? | 2 Yes | 5 No |
Post New Answer View All Answers
How many types of session in ASP.NET
Why do you use the app_code folder in asp.net?
What is a global postback url?
What tags do you need to add within the asp:datagrid tags to bind columns manually? Give an example.
Securitywise What are the Enhancements in 2.0?
What is the main differences between asp and asp.net?
What is AutoPostback?
Can we use html in asp.net?
a)COM Callable Wrapper b)Runtime Callable Which one of the above is Win32 API in .Net?
What is the difference between exe and dll?
What is sta?
What are the difference between function and stored procedure in .net programming language?
how to debug web services on consumer side?
What is the difference between typeof() vs gettype()?
What are the different kinds of assemblies?