Hello, Hengky,
The MasterTemplate.
Templates collection gives you access to the child templates in
RadGridView. Once you get the child
GridViewTemplate, its Columns collection returns the columns you see in the child level. Casting the
GridViewMaskBoxColumn seems to be correct in the provided code snippet. Thus, you can set the
Mask and
MaskType for the column:
https://docs.telerik.com/devtools/winforms/controls/gridview/columns/column-types/gridviewmaskboxcolumn The
CellFormatting event can also be used for the hierarchical cells as well as it is demonstrated in Nadya's reply. The CellFormattingEventArgs.Row.
HierarchyLevel property indicates to which hierarchical level the cell/row belongs.
In case you are still experiencing any further difficulties, feel free to submit a support ticket from your Telerik account and provide a sample project demonstrating the problem you are facing. Thus, we would get better understanding of the precise case and think about a suitable solution. Thank you in advance for your cooperation.
Should you have further questions please let me know.
Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.