最大值没有显示到文本框 [英] Maximum no showing to textbox

查看:57
本文介绍了最大值没有显示到文本框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在那个uid文本框中有一个表单,在gridview 2000 uid'下面有一个表格,当我下次默认运行项目时2001(最大数字)应该在表单中的uid文本框中自动设置怎么样我想b $ b得到它...请建议我..



这是网格视图,如



id uid name

1 1998 xyz

2 1999 pqr

3 2000 rst

I have a form in that uid textbox and below gridview in that gridview 2000 uid''s there when i next time run the project by default 2001(higest number)should be automatically set in the uid textbox in the form how can i
get it ...please suggest me..

This is the gridview like

id uid name
1 1998 xyz
2 1999 pqr
3 2000 rst

推荐答案

如果你从sql数据库获得gridview数据,那么你应该确保将uid列命名为decending并获得Uid的前1个结果。然后将该值绑定到您的文本框。
If you are get the gridview data from sql database,
you should make sure to order the uid column as decending and get the top 1 results of Uid. and then bind that value to your text box.


这篇关于最大值没有显示到文本框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆