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 asynchronous call can be implemented using delegates?
How does a content page different from a master page?
Write code to send e-mail from an asp.net application?
In the Repeater control which way you can edit?
What are the file extensions for razor views?
What are the page life cycle events?
List some of the important session state modes of asp.net.
How to bind all the binding controls in a page at once in ASP.NET?
How many types of validation are there?
Explain transparent caching with aop?
I am trying to implement sorting facility from client side code in GridView Control. So how can I fill up an Array inside client side code (using JavaScript), i want to assign my DataSet object declared and filled up on Server side(in code behind) to the array (on client side)
What is session in http request?
What is the difference between web config and machine config files?
Explain what is an assembly?
Is asp.net web forms dead?