Property grid -Modify the position of the central splitter

0
0

Hello,

How to modify the size/position of the vertical splitter line?

Thanks,

Valeriano

  • You must to post comments
0
0

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

 

  • You must to post comments
0
0

Hi,

yes, i refer to vertical splitter.

But I can not find the property “NameFillWeight”. Where is?

thanks,

valeriano

  • You must to post comments
0
0

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

  • You must to post comments
0
0

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

  • You must to post comments
Showing 4 results
Your Answer

Please first to submit.