We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

I need some help binding a variable passed from another page to GridColumn.HeaderText

Hi Guys,

I've currently encountered a problem with SfDatagrid for Xamarin.Forms.

My Datagrid has a GridColumn.HeaderText with some text that change according to a variable passed from another page.

Any way to bind that variable using XAML?
.

Thanks in Advance,
Marcelo

3 Replies

VR Vigneshkumar Ramasamy Syncfusion Team November 26, 2018 06:40 AM UTC

Hi Marcelo 
 
Thanks for contacting Syncfusion support. 
 
We have checked you query with “My Datagrid has a GridColumn.HeaderText with some text that change according to a variable passed from another page.” And your requirement can be achieved by having a header property in ViewModel and accessing the same property from two pages. We have prepared a sample for the same and please find the sample form the below link. 
 
 
Please let us know if this helpful. 
 
Regards 
Vigneshkumar R 



MA Marcelo November 28, 2018 01:26 PM UTC

Thanks a lot!!! It´s very useful Vigneshkumar


VR Vigneshkumar Ramasamy Syncfusion Team November 29, 2018 04:44 AM UTC

Hi Marcelo, 
 
We glad to know that your requirement has been achieved. Please get in touch if you required further assistance on this. 
   
Regards 
Vigneshkumar R 


Loader.
Live Chat Icon For mobile
Up arrow icon