下拉框属性关键:IncrementalFilteringMode="StartsWith" DropDownStyle="DropDown"
ASPxGridView中金额、数量、总计(写在GridView下 如图):
数量总计代码:
#region 付款前显示列表总计
decimal gird_money1 = decimal.Parse(ASPxGridView1.GetTotalSummaryValue(ASPxGridView1.TotalSummary["AMONEY"]).ToString()); //采购商品金额总计
decimal gird_money2 = decimal.Parse(ASPxGridView2.GetTotalSummaryValue(ASPxGridView2.TotalSummary["AMONEY"]).ToString()); //采购服务及费用金额总计
decimal count_monye = gird_money1 + gird_money2; //金额总计
//金额总计
if (count_monye > 0)
{
lb_countmoney.Text = "¥" + count_monye + "元";
}
else
{
lb_countmoney.Text = "¥0元";
}
//采购商品金额总计
if (gird_money1 > 0)
{
lb_goodsmoney.Text = "¥" + gird_money1 + "元";
}
else
{
lb_goodsmoney.Text = "¥0元";
}
//采购服务及费用金额总计
if (gird_money2 > 0)
{
lb_servicemoney.Text = "¥" + gird_money2 + "元";
}
else
{
lb_servicemoney.Text = "¥0元";
}
#endregion
ASPxGridView去某一行的值:
ASPxGridView1.GetTotalSummaryValue(ASPxGridView1.TotalSummary["AMONEY"]).ToString()