在GridView中基于复选框和文本框显示总金额 [英] displaying total amount based on checkbox and textbox in gridview

查看:67
本文介绍了在GridView中基于复选框和文本框显示总金额的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在带有多个文本框的gridview中输入数量,并在复选框中进行选择和取消选择.我需要根据选中的复选框和输入的数量来显示总金额.我的代码为此工作正常.现在,当我取消选中该复选框时,必须从总金额中扣除该行金额,即使其正常工作,但我的问题是,当我取消选中两行或三行时,它没有显示正确的答案.谁能帮我解决这个问题.


关于
veena

I am having gridview with multiple textbox to enter the quantity and checkbox to check and un-check. I need to to display the total amount based on checkbox checked and the quantity entered. My code is working fine for this. Now when i un-check the check box that row amount must be deduct from the total amount even its working fine but my problem is when I un-check two or three rows its not showing the correct answer. Can any one help me to sort out this problem.


with regards
veena

推荐答案

您的页面需要调用代码以更新已选中或未选中的任何复选框的总数.
Your page needs to call the code to updte the total on any of hte checkboxes being checked or unchecked.


这篇关于在GridView中基于复选框和文本框显示总金额的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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