本文介绍了单击按钮时Gridview的总行数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个包含3列说明",金额"和类型"的gridview,并且我在gridview之外有两个按钮,即编辑"和更新".当Gridview第一次在数量"列中加载数据时,是一个标签,但是当它们单击编辑"时,数量"列中的所有标签都变为文本框,用户可以编辑数量.当用户单击更新按钮时,如何在updatebtn_click事件中验证金额列是否为零?
Hi, i have a gridview with 3 columns "description", "amount" and "type" and i have two buttons outside the gridview, "edit" and "update". When the gridview first loads the data in the amount column is a label but when they click "edit", all the labels in the amount column change to textboxes and the user can edit the amounts. When the user clicks the update button how can i validate that the amount column balances to zero, in the updatebtn_click event?
推荐答案
这篇关于单击按钮时Gridview的总行数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!