New to Telerik UI for WinForms? Start a free 30-day trial
Accessing Child Templates
Updated over 6 months ago
You can programmatically access your child templates using MasterTemplate.Templates collection. For example, use the following code to set the AutoSizeColumnsMode to Fill in the first child template :
C#
this.radGridView1.MasterTemplate.Templates[0].AutoSizeColumnsMode = Telerik.WinControls.UI.GridViewAutoSizeColumnsMode.Fill;