Hello,
I want to make a custom GridView to fit a specific requirement. So I changed the ViewDefinition to ColumnGroups View and I got the format I want. It is shown like picture "question.JPG".
But the header looks strange ...
1.How can I do to resize the height of header and resize the height of filter row?
2.If I want to hide the second row of header and the third row of header , how to do that?
Thanks and regards,
Jaspy
2016/04/14
5 Answers, 1 is accepted
Thank you for writing.
You can determine whether a specific root GridViewColumnGroup will show its header by the ShowHeader property. The GridViewColumnGroupRow.MinHeight property allows you to adjust the minimal height of the row. Thus, the height for each data row will be adjusted as you specify the MinHeight property for the group row that participates in the ColumnGroupsViewDefinition.
The provided suggestion is applicable to the latest version. Feel free to upgrade in order to benefit from the introduced view definition functionality.
I hope this information helps. Should you have further questions I would be glad to help.
Regards,
Dess
Telerik
Hi,Dess
Thanks for your kindly answer.
I still wonder how can I do if I want to hide the second row and the third row?
Regards,
Jaspy
2016/04/15
Hi,Dess
I have tried your suggestion. But I can't find any property like GridViewColumnGroupRow.MinHeight......
It is the first row to be hide when set the ShowHeader to fase...It can not deal with my situation.
Regards,
Jaspy
2016/04/15
Thank you for writing back.
The GridViewColumnGroupRow.MinHeight property was introduced in 2014.2.617 version. As it was noted in my previous post the suggested approach is applicable for the latest version. Feel free to upgrade in order to benefit from the introduced improvements in the ColumnGroupsViewDefinition functionality.
As to question about hiding sub-groups/rows, not the root one, you can refer to the following forum post which demonstrates a sample approach: http://www.telerik.com/forums/hide-column-header-only
I hope this information helps. If you have any additional questions, please let me know.
Regards,
Dess
Telerik