Click here to Skip to main content
15,885,988 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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
Posted
Updated 6-Dec-12 23:20pm
v3
Comments
[no name] 7-Dec-12 3:12am    
Elaborate your question...
choudhary.sumit 7-Dec-12 3:13am    
are you filling your grid from sql database??
AnkitGoel.com 7-Dec-12 3:48am    
i am not getting your question.... please specify

1 solution

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.
 
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