当我插入数据库状态时,网格视图中的“自动增量"列 [英] Automatically Increment column in grid-view when i am inserted database status

查看:60
本文介绍了当我插入数据库状态时,网格视图中的“自动增量"列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


这是拉梅什.

我正在使用asp.net,c#和sqlserver.我的问题是我的数据库具有状态.
假设状态有三种类型(A,B,C).现在很好.假设在将来的客户端中插入了新状态(D).

Hi
This is Ramesh.

I am using asp.net ,c# and sqlserver. My Problem is I have database with status.
Suppose Status have Three Types is there.(A,B,C). Now it''s fine. Suppose in future client Inserted new status(D). Automatically grid-view will bind a new row with status D.

推荐答案



Hi,

<asp:gridview id="gvwDemo" autogeneratecolumns="true" xmlns:asp="#unknown">
</asp:gridview>




希望对您有帮助.




Hope This helps you..


这篇关于当我插入数据库状态时,网格视图中的“自动增量"列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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