Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

How to alter sub total and grand total values in VIBlend?

$
0
0

Hi,

     I'm using viblend for displaying datagrid in my vb.net windows application.  I use

gridname.BoundPivotValues.Add(New BoundValueField("margin'", "margin", PivotFieldFunction.Sum))

to display the value from dataset in the datagrid. im getting the value correctly as follows:

---------------------------------------

sa             co               margin

------------------------------------

10             5                50

20             10              50

-----------------------------------

30             15               100        sub total

-----------------------------------

The formula behind is (sa-co)*100/sa.    This calculation is happened in stored procedure and im getting output via dataset and displayed here. The problem is, instead of 100 in margin subtotal i need 50...ie... using same formula (30-15)*100/30.

How can i get this in viblend?


Viewing all articles
Browse latest Browse all 12583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>