Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What are the advantages of Web API?

1115


Tell me the code snippet to show how we can return 404 errors from HttpError?

1281


How to Insert/Add in ASPXgridview

1037


Explain exception filters?

1035


Explain the difference between globalization and localization techniques

1002


Explain exception handling in .net.

1076


What is a global postback url?

952


What is ViewState? What does the "EnableViewState" property do? Why would I want it on or off?

1127


How can exception be handled with out the use of try catch?

1005


Explain Authentication mechanism in dotnet

1046


What is the concept of postback in asp.net?

1043


How do you create a master page?

1044


Suppose you want an asp.net function (client side) executed on the mouseover event of a button. Where do you add an event handler?

1037


Is react a template engine?

929


Securitywise What are the Enhancements in 2.0?

1939