I am creating the grid fields in code and adding Row Summary in FieldLayoutInitialized event. The row summary appear as 0.00 for columns and are not updated when cells are changed.
What am I missing?
Hello leadbeater,
I reviewed your question and the behavior you described sounds very strange. The FieldLayoutInitialized event should be fired after the FieldLayout has been already initialized. Could you please double check if at this point you have already set the XamDataGrid’s DataSource (for example in the constructor of the window). If this doesn’t help, could you please provide me with more details about the collection you use and where do you assigned it to the xamDataGrid.DataSource.
Thanks in advance.
Any updates for this please?
Tahir
Hello Tahir,
I examined your issue further, however I am still not able to reproduce the mentioned behavior. I created a sample for you where I isolated a scenario similar to the one you described. Could you please modify it so it will represent your situation and send it back to me so I can continue investigating the issue.
Please find attached.
Hi,
Thank you for your help. I've managed to find the problem, it was the StringFormat of SummaryDefinition. I was putting "0.00" in it but "{0:0.00}" works fine.
Many thanks.
Please find the sample, which I modified so the summaries are shown. I added them in the FieldLayoutInitialized event as you mentioned.
If this doesn’t suit your scenario or you have any further questions I will be glad to help.