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
What are the advantages of Web API?
Tell me the code snippet to show how we can return 404 errors from HttpError?
How to Insert/Add in ASPXgridview
Explain exception filters?
Explain the difference between globalization and localization techniques
Explain exception handling in .net.
What is a global postback url?
What is ViewState? What does the "EnableViewState" property do? Why would I want it on or off?
How can exception be handled with out the use of try catch?
Explain Authentication mechanism in dotnet
What is the concept of postback in asp.net?
How do you create a master page?
Suppose you want an asp.net function (client side) executed on the mouseover event of a button. Where do you add an event handler?
Is react a template engine?
Securitywise What are the Enhancements in 2.0?