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

Explain the main function of url routing system in asp.net mvc? : asp.net mvc

1070


Can we use MSSql as backend in asp.net...if yes then How.?

1087


What is web router?

983


What is gridview in asp.net?

1055


What is the sequence in which ASP.NET events are processed?

1177


What can you do with asp.net?

977


Can we set master page as a start page?

1078


What is clickid?

1095


COM+ Used ________________ Isolation Level

2003


Are there resources online with tips on asp to asp.net conversions?

1074


What is the difference between rest and restful?

1100


What's the ASP.Net Application life cycle?

1165


Define the term Scavenging in Caching?

1084


Differentiate strong typing and weak typing

1004


How Can assign alias name for ASP.NET Web API Action?

1513