Add the following to your code:
private static void ChangeDescriptionHeight(PropertyGrid grid, int height) { if (grid == null) throw new ArgumentNullException("grid"); foreach (Control control in grid.Controls) { if (control.GetType().Name == "DocComment") { var fieldInfo = control.GetType().BaseType.GetField("userSized", BindingFlags.Instance | BindingFlags.NonPublic); fieldInfo.SetValue(control, true); control.Height = height; return; } } }
And name it as follows:
var progressTimerProperties = new ProgressTimerProperties(); propertyGridProgressTimer.SelectedObject = progressTimerProperties; ChangeDescriptionHeight(propertyGridProgressTimer, 0);
Note that '0'? It sets the height of the description area to 0, effectively removing it. If you want, you can go in the opposite direction and make it larger to accommodate more text.
source share