Hi,
I need a grid which should gives me opening balance (top to the header), set of transactions followed by that total and closing balance. For Ex,
Opening Balance 200.00
ID TXN CODE TXN STMT ......... TXN VALUE
1 11111 11 ......... 150.00 2 22222 22 ......... 300.00
Total 450.00
Closing Balance 650.00
Whether this can be acheivable? Can anyone help me in this regard??
Thanks in advance.
- Arthi
Arthi,
Total can be easily achieved with Row Summaries. You can see examples of row summaries in the XamFeatureBrowser.
I suppose the Opening Balance and Closing Balance would be just labels (read-only), so the easiest way to implement them is to place them outside the XamDataGrid and handle the SummaryResultChanged event and set the Closing Balance value = e.SummaryResult.Value + Opening Balance.
If you prefer, you can retemplate the LabelPresenter and move the Opening Balance there, but getting/setting that value would not be as easy task.
Please let me know which way you prefer to go and would be most appropriate in your scenario and if you have any more questions on this.
Alex.
Alex,
Thanks a lot. We are now using Row Summaries as of now. Its working fine. Thanks a lot again.