在Gridview文本框中我想显示两列值的减法。我该怎么做 [英] In Gridview Textbox I Want To Show The Subtraction Of Two Column Values. How Can I Do It
本文介绍了在Gridview文本框中我想显示两列值的减法。我该怎么做的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
和栏目是学生费用,第二栏是收到费用,当我输入收到的费用金额时,他们减去学生费用并显示在另一列名称余额费用。
解决方案
使用Gridview的RowDataBound事件
void SomeGridView_RowDataBound(对象发件人,GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType .DataRow)
{
// 你的逻辑
}
}
and column is student fee and second column is receved fee, when i enter a amount in receved fee they subtract to the student fee and show in another column name balance fee.
解决方案
use RowDataBound Event of Gridview
void SomeGridView_RowDataBound(Object sender, GridViewRowEventArgs e) { if(e.Row.RowType == DataControlRowType.DataRow) { // Your Logic } }
这篇关于在Gridview文本框中我想显示两列值的减法。我该怎么做的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文