Click here to Skip to main content
15,892,059 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi all
I created manually edit delete update for grid while page loading getting an error on line:
C#
GridViewRow row = (GridViewRow)GridView1.Rows[e.RowIndex];

The error is:
'System.Web.UI.WebControls.GridViewUpdatedEventArgs' does not contain a definition for 'RowIndex' and no extension method 'RowIndex' accepting a first argument of type 'System.Web.UI.WebControls.GridViewUpdatedEventArgs' could be found (are you missing a using directive or an assembly reference?)

How can i avoid this can any one help me.
Thanks in advance.
Posted
Updated 2-Dec-10 20:40pm
v3
Comments
Sunasara Imdadhusen 3-Dec-10 2:10am    
Please send the code were you had written statement '(GridViewRow)GridView1.Rows[e.RowIndex])'
tulasiram3975 3-Dec-10 2:30am    
problem is solved sir i change event

1 solution

ok sorry guys i had made small mistake i am writing code in rowupdated event not in row updating thats it now my code is working fine
 
Share this answer
 
v2
Comments
Ankur\m/ 3-Dec-10 2:32am    
I guess you need a new keyboard which has punctuation marks on it.
tulasiram3975 3-Dec-10 4:32am    
thanks for compliment
tulasiram3975 8-Dec-10 4:23am    
if(people behave like you)
{
no one willing to ask question;
}

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900