Using x:Bind instead of Mapping

When (if ever) will the DataGrid control support the de-facto x:Bind mapping instead of the non-standard Mapping?

Mapping, as well as Binding bind during runtime. Binding errors will not be caught during compile-time and obfuscation is nearly impossible.


5 Replies

MA Mohanram Anbukkarasu Syncfusion Team March 7, 2022 02:34 PM UTC

Hi Arthur,  

We are currently validating the reported scenario in our end. We will update further details on March 09, 2022. We appreciate your patience.  

Regards, 
Mohanram A. 



MA Mohanram Anbukkarasu Syncfusion Team March 9, 2022 02:55 PM UTC

Hi Arthur,   
 
We regret for the inconvenience. We are still validating this. We will update further details on March 11, 2022. We appreciate your patience.   
 
Regards,  
Mohanram A.  




MA Mohanram Anbukkarasu Syncfusion Team March 11, 2022 11:52 AM UTC

Hi Arthur, 

We regret for the inconvenience.  

We would like to inform that you can use x:Bind in our WinUI DataGrid. But we are in need of more details about your exact scenario/requirement for using x:Bind in DataGrid. It will be helpful for us to check for the possibilities to achieve your requirement and to provide a prompt solution.  

Regards, 
Mohanram A. 




AK Arthur Kater March 16, 2022 07:06 AM UTC

Hello Mohanrad,


Although ItemsSource supports x:Bind, binding of a column is done through MappingName.
I would like column-binding to support x:Bind.


Regards,


Arthur



MA Mohanram Anbukkarasu Syncfusion Team March 16, 2022 01:25 PM UTC

Hi Arthur, 

Columns in SfDataGrid can be bound to a property in data object using GridColumn.MappingName property. It also supports to format or bind different property for display and edit mode separately by using GridColumn.DisplayBinding and GridColumn.ValueBinding for which you can use x:Bind. 


Please let us know if you require any other assistance.  

Regards, 
Mohanram A. 


Loader.
Up arrow icon