如何在运行时不编辑,删除按钮或超链接的情况下使gridview可编辑 [英] how to make a gridview editable during runtime without edit, delete buttons or hyperlink

查看:120
本文介绍了如何在运行时不编辑,删除按钮或超链接的情况下使gridview可编辑的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我有一个在运行时填充的gridview.我还没有定义列,列是动态填充的,现在当列被动态填充时,我需要某些列是可编辑的.我应该能够更改gridview的单元格中的值,并且当单击公共保存按钮时,应该在数据库中更新该单元格.
我不应该使用任何编辑删除按钮或超链接来解决此问题.
我需要一个可动态编辑的网格.请帮忙.

谢谢,
aestra

Hi,
I have a gridview that gets populated during runtime. I havent defined the columns, the columns are populated dynamically.Now when the columns gets dynamically populated, I need certain columns to be editable. I should be able to change a value in a cell of a gridview and when click of a common save button that cell should be updated in the database.
I should''nt use any edit delete button or hyperlink to resolve this.
I need a dynamically editable grid.Please help.

Thanks,
aestra

推荐答案

,您可以在该行上使用双击"进入编辑模式.

此外,如果您甚至无法在编辑模式下使用更新按钮,则可能是因为您想离开(单击行以外的其他位置)作为更新触发器.

-Sandeep.
you can use ''Double click'' on the row to go into an edit mode.

Further, if you cannot have even update button in edit mode then may be you can have something like moving away (click somewhere else other than row) as an update trigger.

- Sandeep.


这篇关于如何在运行时不编辑,删除按钮或超链接的情况下使gridview可编辑的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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