Propertygrid text control

  • Thread starter Thread starter moni
  • Start date Start date
M

moni

Hi,

I was hoping to know, how I could change the text of the associated
control in a property grid to bold, on an event
propertyGrid1_PropertyValueChanged(object s,
PropertyValueChangedEventArgs e)

i.e. I want the text to change to bold when an update occurs on the
text field(i.e. when this event is generated)

Any help will be appreciated.Thanks alot
 
moni,

Short of re-implementing the control to draw everything custom, there
really isn't a way. The Font property is for the whole control, not for
individual elements (which you would need to access in order to set it to
bold).
 
Hello Moni,

Nicholas is right. There is no way to change the normal behaviour of
the grid (the MS PropertyGrid paints as bold when the value is not the
one supplied by the DefaultValueAttribute).

Only the 3rd-party Smart PropertyGrid component will be able to
customize each property individually.

Best regards,

Nicolas Cadilhac @ VisualHint (http://www.visualhint.com)
Home of Smart FieldPackEditor.Net / DateTimePicker replacement
Home of Smart PropertyGrid for .Net and MFC
Microsoft PropertyGrid Resource List - http://www.propertygridresourcelist.com
 
Back
Top