Open your aspx in design mode, right click the gridview control and select properties, in the properties tab select the lightening icon(Symbol to represent Events), it will list all the supported Events for this control... double click the empty area adjacent to an
event and the methods will be added to your code behind... this will help you to get familiar with the events of all the controls..
Thanks. I know how to fire an event... What i was asking is Can u provide the CODE for other events Row_updating, Row_deleting, Sorting and Paging for the database
rookie tiro
Member
86 Points
130 Posts
How could i get the code for the events similarly for Row_updating, Row_deleting, Sorting and pa...
Jan 27, 2012 09:10 AM|LINK
protected void GridView1_RowEditing(object sender, GridViewEditEventArgs e) { GridView1.EditIndex = e.NewEditIndex; bindgridview(); } protected void GridView1_RowCancelingEdit(object sender, GridViewCancelEditEventArgs e) { GridView1.EditIndex = -1; bindgridview(); }Arunmhn
Participant
1876 Points
347 Posts
Re: How could i get the code for the events similarly for Row_updating, Row_deleting, Sorting and...
Jan 27, 2012 10:26 AM|LINK
Open your aspx in design mode, right click the gridview control and select properties, in the properties tab select the lightening icon(Symbol to represent Events), it will list all the supported Events for this control... double click the empty area adjacent to an event and the methods will be added to your code behind... this will help you to get familiar with the events of all the controls..
Thanks
Arun
rookie tiro
Member
86 Points
130 Posts
Re: How could i get the code for the events similarly for Row_updating, Row_deleting, Sorting and...
Jan 27, 2012 05:10 PM|LINK
Arunmhn
Participant
1876 Points
347 Posts
Re: How could i get the code for the events similarly for Row_updating, Row_deleting, Sorting and...
Jan 27, 2012 05:39 PM|LINK
This can help you get started then http://www.codeproject.com/Articles/36528/GridView-all-in-one
Thanks
Arun
Decker Dong ...
All-Star
118619 Points
18779 Posts
Re: How could i get the code for the events similarly for Row_updating, Row_deleting, Sorting and...
Jan 29, 2012 01:02 AM|LINK
Hello:)
Your 1st reply seems quite right……I cannot understand what you really want and what you mean by saying "similar events"?If you want to know more about GridView's events,please see MSDN+samples at:http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.gridview_events.aspx
Reguards!