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

Font size of GridTemplateColumn

Thread ID:





130334 May 7,2017 09:50 PM UTC May 10,2017 09:56 AM UTC Xamarin.Forms 3
Tags: SfDataGrid
Asked On May 7, 2017 09:50 PM UTC


I have a TimePicker in a GridTemplateColumn (via DataTemplate, of course). I know the CellTextSize property of GridColumn, but that seemimgly does not to work here.

My questions:
  1. Does CellTextSize work for GridTemplateColumn at all?
  2. If so, will it be propagated to controls inside the DataTemplate?
  3. If not, is there a general way of setting the font size in GridTemplateColumn?

Kind regards

Xamarin Forms 2.3.4
Syncfusion ES

Pavithra  Sivakumar [Syncfusion]
Replied On May 8, 2017 12:34 PM UTC

Hi Kind, 
Thanks for contacting Syncfusion support. 
Regarding your first query of “Does CellTextSize work for GridTemplateColumn at all ” 
      Initially, we don’t know which view would be loaded inside GridTemplateColumn. So, CellTextSize property is not applicable for GridTemplateColumn. 
Regarding your Second query of “If so, will it be propagated to controls inside the DataTemplate ” 
      As mentioned in the previous query, CellTextSize is not works for GridTemplateColumn. 
Regarding your third query of “If not,is there a general way of setting the font size in GridTemplateColumn ” 
      There is no general way available for setting the font size in GridTemplateColumn. For TimePicker, there is no inbuild FontSize property. However, you can achieve your requirement of setting font size for TimePicker by customizing the TimePickerRenderer.  
We have prepared a sample based on your requirement and please download the same from below link.

Sample Link : http://www.syncfusion.com/downloads/support/forum/130334/ze/TimePickerInForms-2025227216
Pavithra S 

Replied On May 9, 2017 08:41 PM UTC

Hi again and thank you for your answer.

Concerning GridTemplateColumn format options, well, I have to admit that I was hoping for some magic trick. But o the other hand I suspected something like having to write a renderer. So thank you for the sample code, too.

By the way, kudos to you and the team at Syncfusion for giving competent answers promptly! Which is nothing I could say about a lot of other software companies.

Kind regards

Pavithra  Sivakumar [Syncfusion]
Replied On May 10, 2017 09:56 AM UTC

Hi Kind,  
Thanks for the feedback. We are glad that we were able to help you resolve the issue. Please contact Syncfusion Support in case of any other queries.  
Pavithra S  


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