Click here to Skip to main content
15,891,864 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
when i write below code it showing error, So how i can do this

C#
(GridView25.Rows[2].Cells[0].Text) = (variable)


this is error which is showing to me:
(( assignment, call, increment, decrement, and new object expressions can be used as a statement ))
Posted
Comments
Maciej Los 16-Dec-14 8:05am    
Try:
GridView25.Rows[2].Cells[0].Text = variable

Have a look here: Edit Individual GridView Cells in ASP.NET[^] and here: how to edit/update specific cell in gridview,asp.net/c#?[^]

There is not many information to help you...
 
Share this answer
 
still not solved, Can any body help me
thanks,,,
 
Share this answer
 
Comments
syed shanu 17-Dec-14 3:53am    
What you have in your variable.Show here your variable example that will help to find the solution.
Maciej Los 17-Dec-14 4:25am    
This is not an answer. Please, delete it to avoid downvoting.
TheRealSteveJudge 17-Dec-14 4:58am    
Yeah! Give him a chance to avoid being voted down!
i find solution

C#
this.GridView25.Rows[0].Cells[0].Text


i don't why it was not working, Thnaks,,
 
Share this answer
 
Comments
TheRealSteveJudge 17-Dec-14 4:59am    
Thou shalt not answer your own questions!

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