更新gridview中连续的所有字段 [英] updating all fields in a row in gridview

查看:64
本文介绍了更新gridview中连续的所有字段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



i需要更新gridview中单行中的所有字段...任何人都可以建议我可以在查询中使用什么条件(如果有的话)完成它?表没有主键...任何帮助都非常感谢....

hi all,

i need to update all fields in a single row in gridview...can anyone suggest what condition(if any) can i use in query to get it done? table has no primary key...any help is highly appreciated....

推荐答案

在查询中使用ID(在where where Condition中)更新特定记录



对于Gridview编辑,请检查此链接



关于更新表 [ ^ ]
In Query use ID(In where Condition) to update a particular record

For Gridview editing check this link

Regarding updating table[^]


我对此进行了大量搜索,发现必须有某种唯一标识符更新记录......标识符值可以放入数据键名称而不显示在gridview中...然后gridview的所有字段都可以置于可编辑模式并更新...
I did a lot of searching on this and found out that there has to be some kind of unique identifier for updating records...that identifier value can be put into data key names and not shown in the gridview...then all fields of gridview can be put in editable mode and updated...


这篇关于更新gridview中连续的所有字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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