gridview数据条目与第一列相同 [英] gridview data entry is same as first column

查看:54
本文介绍了gridview数据条目与第一列相同的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





i我正在使用带有c#和oracle 11g的asp.net,我在asp.net gridview中工作,这是我在运行时绑定并添加新的在按钮单击的网格视图中的行,但是如果网格视图为空,那么我插入一个不是问题的新行,但是当我插入第二行时,我想要哪个是2列与第一列相同,





当数据来到数据库时我的内容相同,我插入新行第二列与上栏相同





有可能,



请帮帮我?请

Hi,

i am useing asp.net with c# and oracle 11g, I am working in asp.net gridview which is i bind in run time and add new row in gird view in button click but that time if grid view is blank i insert a new row that is not a issue, but when i insert in second row i want which is 2 column is same as first column,


and that thing is same when data is come for database and i insert a new row second column is same as upper column


it is possible,

please help me?please

推荐答案

GridView控件启用了ViewState属性。所以它在PageLoad上加载保存的数据。



因此请检查更改PostBack选项以及禁用ViewState属性。



您可以发布ASPX和CS代码以获得更好的答案和建议。
GridView control has ViewState Property enabled. So it loads the saved data on PageLoad.

So check by Changing the PostBack options and also by Disabling ViewState property.

You can post your ASPX and CS code for better answer and suggestion.


这篇关于gridview数据条目与第一列相同的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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