When I edit a cell, the text edit box uses a larger font than the one I'm using for the cells. It's not a big problem, because the text is still perfectly legible. However I'd like to use the same font for the cell and the edit field if possible. Is there a way to set the font of the text edit box?
RARiyaj Ahamed I Syncfusion Team June 25, 2013 04:59 AM UTC
Thanks for contacting Syncfusion support.
TextBlock is loaded in normal mode and TextBox is loaded in
edit mode as content to the GridCell. When we apply style for the
ContentControl, TextBox does not override the values like font styling. We
suspect this is an issue with Microsoft framework. However you can achieve this
requirement by applying style directly to TextBox. By defining
corresponding TextBox style inside the SfDataGrid.Resources you can show the
same font while cell is in edit mode. The following code snippet illustrates
<Setter Property="FontSize" Value="16"/>
Please let us know if you need further assistance.