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 is a session http?
How do you remove duplicates without using remove duplicate stage?
Explain transparent caching with aop?
Explain the significance of routing? : asp.net mvc
Why is it preferred to not use finalize for clean up?
Where do we store our connection string in asp.net application?
Why do we need Sessions?
What is an axd file?
Difference between DataGid and Girdview? Difference b/w .Net 2.0, 3.0 and 3.5 ? Diff b/w dispose & Finialize Methods?
Define what is razor? : asp.net mvc
Describe the sequence of action takes place on the server when ASP.NET application starts first time?
What is the use of ASP.NET routing?
What are the layouts of ASP.NET Pages?
What are server-side comments in ASP.NET?
What are the ways to sending the data in ASP.NET page?