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.
Unfortunately, activation email could not send to your email. Please try again.

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

Thread ID:

Created:

Updated:

Platform:

Replies:

128699 Feb 6,2017 02:47 PM Feb 7,2017 01:54 AM Xamarin.Forms 1
loading
Tags: SfDataGrid
K Guptha
Asked On February 6, 2017 02:47 PM

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 01:54 AM

Hi Kumar,      
  
Thanks for contacting Syncfusion support.    

ColumnTemplate

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 



RowTemplate:   

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: 


Regards, 
Ashok 


CONFIRMATION

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.

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.

;