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
How tooltip is set through code-behind in ASP.NET?
In order to bind the data from a data source to the Repeater control what property is set and what method must you call in your code,?
Any disadvantages in Dataset and in reflection ?
What are directives in asp.net? List down all the important directives.
What is postback request?
What is data control in asp.net?
What is the concepts of globalization and localization in .net?
Explain Apache web servers ? How can you get ASP.NET running in Apache web servers - why should you do this?
Demonstrate Render and PreRender?
How many types of validators are there in asp net?
What does asp.net stand for?
What are Master Pages in ASP.NET?
What should you do is you want to remove an existing component but would like to make some funtionalities?
Explain the advantages of caching?
What is inproc and outproc?