如何计算在datagrid文本框中输入的字符数 [英] How to count the number of characters entered in datagrid textbox
本文介绍了如何计算在datagrid文本框中输入的字符数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
亲爱的所有人,
请建议计算输入数据网格文本框的字符数。
谢谢。
Dear All,
Kindly suggest to count the number of characters entered into datagrid textbox.
Thanks.
推荐答案
如果我已正确理解你的问题,那就很简单了,请参阅:
If I've understood your question correctly then it's pretty simple, see :
TextBox txt = GridView1.FindControl("TextBox1") as TextBox;
int len = txt.Text.Length;
这篇关于如何计算在datagrid文本框中输入的字符数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文