Click here to Skip to main content
15,888,461 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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..
Posted
Comments
Sandeep Mewara 1-Dec-10 1:56am    
Your last part is unclear.

1 solution

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.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900