Click here to Skip to main content
15,867,330 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear All,

Kindly suggest to count the number of characters entered into datagrid textbox.

Thanks.
Posted

1 solution

If I've understood your question correctly then it's pretty simple, see :
C#
TextBox txt = GridView1.FindControl("TextBox1") as TextBox;
int len = txt.Text.Length;
 
Share this answer
 

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