6 Answers, 1 is accepted
Hello Jeffrey,
I am afraid I cannot suggest another approach for achieving this requirement. We have a feature request logged in our Feedback portal:
https://feedback.telerik.com/xamarin/1366210-datagrid-provide-an-easy-way-to-set-row-height
You can cast your vote for the item in order to affect its priority.
Let me know if I can assist with anything else.
Regards,
Didi
Progress Telerik
Thanks for the response, Didi. I added my vote to that feature request.
So, there is no easy way to set the row height. Is there a hard way? If so, do you have an example?
Thanks,
Jeff
Hi Jeff,
Thank you for your vote on this feature request.
Currently, the solution I could suggest is applying a custom DataGridTextCellStyle to the CellContentStyle property for each column within your RadDataGrid:
Example:
<telerikDataGrid:DataGridTextColumn PropertyName="Country" >
<telerikDataGrid:DataGridTextColumn.CellContentStyle>
<telerikDataGrid:DataGridTextCellStyle FontSize="15"
SelectedTextColor="Orange" />
</telerikDataGrid:DataGridTextColumn.CellContentStyle>
Regards,
Didi
Progress Telerik
Hi Jeffrey,
I am sorry for the confusion.
There is default TextMargin of the DataGridTextCellStyle which you need to override in order to reduce the overall row height of the columns:
<telerikGrid:DataGridTextColumn.CellContentStyle>
<telerikGrid:DataGridTextCellStyle TextColor="DarkOliveGreen"
FontSize="10"
TextMargin="2"
VerticalTextAlignment="Center"
HorizontalTextAlignment="Center"
SelectedTextColor="Brown">
</telerikGrid:DataGridTextCellStyle>
</telerikGrid:DataGridTextColumn.CellContentStyle>
Please give this a try and let me know how it goes.
Regards,
Yana
Progress Telerik