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 difference between the web config and machine config.
Is data edited in the Repeater control?
Explain method to handle error using HttpError in Web API?
How can we make sure that Web API returns JSON data only?
Explain how can we access static variable?
How do we sort the data from a dataset?
Can we store object in viewstate?
What is Cookies Less Session?
Explain how dot net compiled code will become platform independent?
Can you set the session out time manually?
How do you design a website with multilingual support in ASP.NET ?
What is application state?
Why web api is better than wcf?
Explain the asp.net session state modes.
What is ispostback property?