GridView...................

Posted by Samanthajyesta under ASP.NET AJAX on 11/15/2011 | Points: 10 | Views : 1685 | Status : [Member] | Replies : 0
Hi,

I have a grid view where i have to calculate average after unit price reaches 50 and display it in another column.
Means, the user can enter the number of units that he wants to take.
If the count of the units is 50 then i have to show the average value in the next column.
If the count exceeds 50, then the exceeded amount of units is spilt to next row with the same ID as shown below.

How can i do this to show like below in my gridview.


ID (units) TOTAL AVERAGE
1 10 100
2 30 300
3 10 100 50

4 25 250
5 20 200
6 5 50 50

6 20 200
7 10 100

http://www.dotnetfunda.com


Responses

(No response found.)

Login to post response