Hi Roddis,
Width and ColumnWidth properties are working fine when we set in Code behind[C#] also. We have prepared the sample and code snippet for this. Please revert us with the modified sample if you are still facing the issue. Please refer attached image and sample program.
Code snippet:
//Setting default Width to column
this.treeGrid.DefaultColumnWidth = 50;
treeGrid.ModelLoaded += (s, e) =>
{
treeGrid.ColumnHeaderStyle.HorizontalAlignment = HorizontalAlignment.Center;
treeGrid.InternalGrid.ExpandGlyphType = GridTreeExpandGlyph.PlusMinus;
//Setting Width to FirstName column
treeGrid.Columns[1].Width = 150;
};
Please let us know if you need more details.
Thanks&Regards,
Raja sekar.G
102810attachement_ead5d4dc.zip