in my ViewModel, i have AProperty as int, B Property as int and CProperty as int
then CProperty = AProperty + BProperty.
then in my datagrid have 3 column by AComlumn Bound to AProperty, BColumn bound to BProperty, CColumn bound to CProperty.
what i want is
when i change value from ACoumn, AProperty and CProperty will changed, and if i change CColumd value, then AColumn and AProperty will change with AProperty = AProperty = CProperty - BProperty. the BProperty is readonly.
I don't know how to do that in synfusion datagid, can anybody can help me, thank.
SSSusmitha Sundar Syncfusion Team August 5, 2019 12:05 PM
Thank you for using Syncfusion controls.
You can achieve your requirement by Unbound columns of SfDataGrid. In these columns, you can bind your expression. And can commit the editable value to an unbound column by QueryUnboundColumnValue event. We have prepared the sample for the same. Please refer the following sample and User guide link,
thanks for this help. But i think it's useful when the expression is simple, with more complex expression, the converter with parameter will be better, i custom an converter with can pass BProperty as converter parameter and use it in datagrid column.
FPFarjana Parveen Ayubb Syncfusion Team August 7, 2019 01:11 AM
Thanks for the update.
We are glad to know that the reported problem has been resolved at your end. Please let us know if you have any further queries on this. We are happy to help you.