i am using silverlight infragistics grid.
1. I have column A and column b which is bound column.
2. I have added column c = column b + column A whcih is unbound column,
3. It displays the data, when i do a cell edit and when i exit the cell of Column A or column B it does not change the data in column C ; where as when i go to the same cell changes reflected in column c, any idea how to make it reflect when we exit the cell,
4. do i need create a custom summary class for summarizing column c, or is it a inbuilt function.
I am using a trial edition to evaluate between infragistics and telerick for the upcoming project, please let me know how to get the Service pack
Hi,
RefreshSummaries was added in a ServiceRelease, so make sure you have the latest SR.
As for the FormatString, an UnboundColumn works off of a Value Converter, so whatever value you return from your Convert method will be displayed. So you could format that value there.
That or you could specify and ItemTemplate, and in the binding specify your format string, on the Value property on the UnboundColumn's DataContext Value property.
-SteveZ
one more question how do I format the un bound column This "FormatString
="{}{0:C}" does not seem to work.
regards,Peter
Thank you, But i am getting the below error , any idea why?
Infragistics.Controls.Grids.RowsManagerBase' does not contain a definition for 'RefreshSummaries' and no extension method 'RefreshSummaries' accepting a first argument of type 'Infragistics.Controls.Grids.RowsManagerBase' could be found (are you missing a using directive or an assembly reference?
Regards,
Peter
I've attached a sample application.
Have a look at MyCustomSummaryOperand.cs - this is where my custom summary is implemented.
Also look at the CellExitedEditMode event handler at MainPage.xaml.cs - it uses two methods .Refresh() on the unbound cell to refresh the bindings and .RefreshSummaries() on the RowsManager to invalidate the summaries of the grid.