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 is ispostback property?

882


Why is mvc better than asp.net?

1022


Explain the difference between codebehind="mycode.aspx.cs" and src="mycode.aspx.cs"?

958


Differentiate strong typing and weak typing

903


What are the features of asp.net mvc?

976


How to find out what version of asp.net I am using on my machine?

1066


Explain the advantages of asp.net.

960


What is difference between asp state management and asp.net state management? How can we pass info between 2 asp.net pages?

936


What is the difference between mvc (model-view-controller) and mvp (model-view-presenter)? : asp.net mvc

998


what is meant by sitemapnode ?

1970


How do you remove duplicates without using remove duplicate stage?

1008


Where would you use an ihttpmodule, and what are the limitations of any?

985


What is the use of global.asax file?

1013


Is LINQ performance wise better or using sqlcommand?

5028


How should I destroy my objects in asp.net?

1040