gridview值的计算 [英] calculation for gridview value

查看:79
本文介绍了gridview值的计算的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我已经在session的帮助下使用gridview在datatable中存储了一些记录.
这些值未存储在数据库中,因此
在这里,我想知道我们如何通过会话来计算在gridview中可用的这些值.

解决方案

您可以在数据库中创建一个方法计数,或者您可以循环遍历要计算的列上的网格视图并执行所需的操作,也可以循环遍历会话中的数据表并获得总的问题所在.

Hi,

I have stored some records in datatable using gridview with the help of session.
these value is not stored in database so
here i want to know that how we calculate these value which are available in gridview with the help of session.

解决方案

you can make a method in the data base that get the count or you may loop through the grid view on the column you want to calculate and do what you want,or you may loop on the data table in the session and get the total where is the problem you are not clear.


这篇关于gridview值的计算的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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