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 ispostback property?
Why is mvc better than asp.net?
Explain the difference between codebehind="mycode.aspx.cs" and src="mycode.aspx.cs"?
Differentiate strong typing and weak typing
What are the features of asp.net mvc?
How to find out what version of asp.net I am using on my machine?
Explain the advantages of asp.net.
What is difference between asp state management and asp.net state management? How can we pass info between 2 asp.net pages?
What is the difference between mvc (model-view-controller) and mvp (model-view-presenter)? : asp.net mvc
what is meant by sitemapnode ?
How do you remove duplicates without using remove duplicate stage?
Where would you use an ihttpmodule, and what are the limitations of any?
What is the use of global.asax file?
Is LINQ performance wise better or using sqlcommand?
How should I destroy my objects in asp.net?