Hello,
I have 2 Columns. When the User enters a number in the first cell of the first row I want the second cell of the first row to get that number and display the result of a formula that is dependent on that number.
I am using XamGrid and need to stick with it for now.
Can you give me a hint on how to do this the best way possible ? Thank you very much.
Regards,
Julian
Hello Tihomir,
it turns out, I not only need to show the computed value but it should also be editable and most importantly it should be boundable. I believe the latter requirement is not possible with an unbound column. am I right ?
Since the bindings are already working perfectly with TemplateColumns I would like to somehow extend its functionaly to compute values, show them and be able to bound data with it.
Do you have any suggestions ? Thank you.
Kind regards,
You can call the Refresh method on the cell. In case you are editing the cell, you can use the CellExitedEditMode event:
private void MyGrid_CellExitedEditMode(object sender, CellExitedEditingEventArgs e) { e.Cell.Row.Cells["UnboundColumnKey"].Refresh(); }
Sincerely,
Tihomir TonevAssociate Software DeveloperInfragistics
thank you for your reply.
It seems to work like that. However, once the value in the first cell changes (i.e. the result shown in the unbound column should change) the result remains the same. How can I notify the valueconverter that a change has been made ?
Hello Julian,
If you want to have a column which will be used for displaying data based on other columns, easiest way to do it is with unbound column.
You can check our documentation here:
https://www.infragistics.com/help/wpf/xamgrid-unbound-column
There is a sample included showing how to create a Total count column. You can use this sample and add the formula logic in your case.
Should you need further assistance, please let me know.
I would really appreciate some assistance on this matter