Click here to Skip to main content
15,896,201 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Guyz,

how can i change the selecttext of commandfield value in gridview dynamically after passing some codition?

for example:

in 1st row i want to change the text to "changed"

pls help.
Posted
Updated 26-Dec-11 20:30pm
v2
Comments
Sergey Alexandrovich Kryukov 27-Dec-11 2:25am    
I have a question for you: do you know how to change is "statically"? What could it possibly mean? :-)
--SA
D K N T H 27-Dec-11 2:31am    
hi SA i updated my question,pls help

1 solution

using
C#
e.Row.Cell[1].Controls[0].Text = "Changed";
Try this, it will solve your problem.
 
Share this answer
 
v2

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