Hello,
How to modify the size/position of the vertical splitter line?
Thanks,
Valeriano
Hi Valeriano,
it´s not yet directly exposed. You can use the following code
((SplitContainer)propertyGrid1.Controls[0]).SplitterDistance = 50;
Hope that helps.
Best regards
Frank
PS: If you want to control the column size you can use the property NameFillWeight.
Just in case you´re referring to the vertical “splitter” between the 2 columns.
Best regards
Frank
Hi,
yes, i refer to vertical splitter.
But I can not find the property “NameFillWeight”. Where is?
thanks,
valeriano
Hi Valeriano,
sorry, the property NameFillWeight is not yet rolled out. It will be included in the next Wisej release.
As a temporary solution you could use:
var grid = ((DataGridView)propertyGrid1.Controls[0].Controls[0].Controls[0]);
grid.Columns[0].AutoSizeMode = DataGridViewAutoSizeColumnMode.None;
grid.Columns[0].Width = 200;
Best regards
Frank
Please login first to submit.