GridCOntrol 中的tableview,继承自 GridDataViewBase, 而 GridDataViewBase继承自 DataViewBase 。
因此下边两种写法都可以调整字体。
tableView2.SetValue(GridDataViewBase.FontSizeProperty, 20.0);
tableView2.SetValue(DataViewBase.FontSizeProperty, 20.0);
另外,从下边代码里可以看,Style 及 DataTemplate 均属于Resources(资源字典):
gridColumn_gd.CellTemplate = this.Resources["CellTemplate_color"] as DataTemplate;
tableView2.RowStyle = this.Resources["RowStyle"] as Style;