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
Explain the main function of url routing system in asp.net mvc? : asp.net mvc
Can we use MSSql as backend in asp.net...if yes then How.?
What is web router?
What is gridview in asp.net?
What is the sequence in which ASP.NET events are processed?
What can you do with asp.net?
Can we set master page as a start page?
What is clickid?
COM+ Used ________________ Isolation Level
Are there resources online with tips on asp to asp.net conversions?
What is the difference between rest and restful?
What's the ASP.Net Application life cycle?
Define the term Scavenging in Caching?
Differentiate strong typing and weak typing
How Can assign alias name for ASP.NET Web API Action?