Hi Sherly,
You can have a look at our shipped browser sample on how ResizeToFit works.Please refer to the following location.
\Syncfusion\EssentialStudio\6.3.0.30\Windows\Grid.Windows\Samples\2.0\FeatureSamples\PivotGridSample\
You can set styles to header text using the code snippet:
this.gridDataBoundGrid1.BaseStylesMap("Col0").StyleInfo.Font.Size="20";
Please let me know any other further assistance.
Regards,
Nisha
>Dear Nisha
Many thanks for ur support.
i've try the code u given
but i cant found it work.
please see my attachment pic.
column Internal_ref set become 80 on Model_QueryColWidth
then when i'm going to print i write the code u given :
gridCollectionDetail.AllowResizeToFit = true;
gridCollectionDetail.Model.RowHeights.ResizeToFit(GridRangeInfo.Table(), GridResizeToFitOptions.None);
please take a look at the pic, on the first row on internal_ref column, the contain that we can see is ITTest3, but the real value is ITTest34. what i want to do is, while the contain is larger than the width, the row height should be grow, so we can see the real value.
and the second question is, when i change the font size, i want to change the font size of the header text.
kindly reply
thanks
sherly
sample_a823c252.zip