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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How can we use the datatemplate, row template and column templates for Sfdatagrid in xamarin.forms ?

Thread ID:





128699 Feb 6,2017 07:47 PM UTC Feb 7,2017 06:54 AM UTC Xamarin.Forms 1
Tags: SfDataGrid
K Guptha
Asked On February 6, 2017 07:47 PM UTC

Hi, can anyone provide me a sample using with data-templates for SfDataGrid,. I'm unable to customize my sfdatagrid rows and columns.

Thank you.

Ashok N [Syncfusion]
Replied On February 7, 2017 06:54 AM UTC

Hi Kumar,      
Thanks for contacting Syncfusion support.    


You achieve the ColumnTemplate by using GridTemplateColumn. It is derived from GridColumn, and hence it inherits all the properties of GridColumn. It allows you to extend the functionality of GridColumn with your own view by creating the CellTemplate of GridTemplateColumn. Please refer the below UG link to get more details about GridTemplateColumn 


Currently we do not have support for RowTemplate in SfDataGrid. Already we have added this feature to our feature management system and this feature will be available any of our upcoming volume release (tentatively). 

You can customize the GridStyle by writing a Style class overriding from DataGridStyle and assigning it to the SfDataGrid.GridStyle property. Please refer the below UG link to get more details about GridStyle: 



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon