根据网格视图获取记录.支付方式 [英] fetch record in grid view acc. to paymode

查看:111
本文介绍了根据网格视图获取记录.支付方式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我正在制作一个asp.net Web应用程序

我有网格视图

我正在从数据库中的表中获取一些数据..

现在该表中有一个列名"paymode",分别设置为1和2.

1收入
2演绎

现在我想要的是,当paymode为1时,对应的记录就在
之间 sr.no 2到7,如果paymode为2,则它介于sr之间.没有9到12,我想在同一网格中分别计算收入和扣除额..

hello to all i am making an asp.net web application

i have grid view

I am fetching some data from a table in database..

now in that table there is a column name "paymode" which are set 1 and 2..

1-earning
2-Deduction

now what i want that when paymode is 1 then the record corresponding to that comes between
sr.no 2 to 7 and if paymode is 2 then it comes between sr. no 9 to 12 i want to calculate earning and deduction separately with in the same grid..

推荐答案

您的问题/方案未完成.尽管基于其余内容,但看起来您只需要根据付款方式在网格中进行分组.要使用特定的序列,可以使用paymode值.
Your question/scenario does not completes. Though based on rest of it, it looks like you just need a grouping in your grid based on paymode. To have a particular sequence you can use paymode value.


这篇关于根据网格视图获取记录.支付方式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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