Hi Anilkumar,
Thank you for contacting Syncfusion support.
We have analyzed your query and please find the below details,
HeaderStyle:
You have write the style to GridHeaderCellControl and set that style to HeaderStyle. In that style, you have set the HorizontalAlignment and VerticalAlignment as Center, so the borders are not arranged as you expected. We suggest you to set the HorizontalContentAlignment and VerticalContentAlignment as center instead on setting HorizontalAlignement and VerticalAlignment.
You can refer the below UG documentation to know more about the HeaderStyle,
CellStyle:
We have applied the style to the GridCell based on your code example and we are able to set the foreground, fontfamily to the cells as expected. We have attached the sample for this and please find the sample from below,
You can refer the below UG documentation to know more about the CellStyle,
Note:
We suspect that you have set the style for Text Block in your application or themes applied then, Foreground and FontFamily will not be changed based in GridCell foreground because GridCell loads TextBlock as its content. However, you can overcome this problem by setting TextBlock style inside GridCell.Resources.
Still if you are facing the problem then Could you please modify and revert the sample to us based on your scenario, this will help us to provide the better solution to you.
Regards,
Elavarasan M