Hi guys.
I wanted to add custom summary at the footer of wingrid, and i want the sum to be divided by 1000.
Please share with to customize the summary.
Thanks.
@kiamhuh
I suggest to use a constructor or a property to the SummaryCalculator class, and pass it a reference to the textbox, but it's a quick and dirty solution.
The best instead is to pass a reference to a class instance that contains the property you need.
Laurent.
I was playing with Brian's code after my job is done.
I could not pass in a textbox value to replace the divisor, is that anyway to do that?
Hi Brian, I was playing with your code after my job is done.
The solution is in a stand alone class, is there any possible way to pass in a textbox value so that the custom summary can be more dynamic?
Brian and Mike, million thanks for your codes.
They work perfectly.
ss.DisplayFormat = "Sum={0}"