PC Review


Reply
Thread Tools Rate Thread

change the backgroundcolor and font of the cell in a propertygrid

 
 
matthijsdezwart@gmail.com
Guest
Posts: n/a
 
      14th Oct 2008
Hi,

I was wondering if someone can help me out with a propertygrid
problem.
Someone else made a program where I insert my script. This script has
some propertíes, which are specified like:

public string _firstProp;
public int _secondProp;

_firstProp = "Default Value";
_secondProp = 0;

public string firstProp
{
get {return _firstProp;}
set {_firstProp=value;}
}

public int secondProp
{
get{return _secondProp;}
set{_secondProp=value;}
}

therse parameters are used in a propertygrid. I would like to be able
to change the background of the cell and the font of the cell, if (for
instance) _secondProp = 1 instead of 0.
Is that possible?
Kind regards,

Matthijs
 
Reply With Quote
 
 
 
 
VisualHint
Guest
Posts: n/a
 
      15th Oct 2008
Hello Matthijs,

No, this is not possible in the Microsoft PropertyGrid. However, if a
3rd party component is an option, this kind of flexibility is
available in Smart PropertyGrid.Net.

Best regards,

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



On Oct 14, 11:29*am, matthijsdezw...@gmail.com wrote:
> Hi,
>
> I was wondering if someone can help me out with apropertygrid
> problem.
> Someone else made a program where I insert my script. This script has
> some propertíes, which are specified like:
>
> public string _firstProp;
> public int _secondProp;
>
> _firstProp = "Default Value";
> _secondProp = 0;
>
> public string firstProp
> {
> * *get {return _firstProp;}
> * *set {_firstProp=value;}
>
> }
>
> public int secondProp
> {
> * *get{return _secondProp;}
> * *set{_secondProp=value;}
>
> }
>
> therse parameters are used in apropertygrid. I would like to be able
> to change the background of the cell and the font of the cell, if (for
> instance) _secondProp = 1 instead of 0.
> Is that possible?
> Kind regards,
>
> Matthijs


 
Reply With Quote
 
matthijsdezwart@gmail.com
Guest
Posts: n/a
 
      16th Oct 2008
Hi Nicolas,

thanks for the info. I'll look into it.
regards,

Matthijs

> Hello Matthijs,
>
> No, this is not possible in the Microsoft PropertyGrid. However, if a
> 3rd party component is an option, this kind of flexibility is
> available in Smart PropertyGrid.Net.
>
> Best regards,
>
> Nicolas Cadilhac @ VisualHint (http://www.visualhint.com)
> Home of Smart PropertyGrid for .Net and MFC (http://www.visualhint.com/
> index.php/propertygrid)
> Microsoft PropertyGrid Resource List -http://www.propertygridresourcelist..com
> Home of Smart FieldPackEditor.Net / DateTimePicker replacement (http://www.visualhint.com/index.php/fieldpackeditor)
>
> On Oct 14, 11:29*am, matthijsdezw...@gmail.com wrote:
>
>
>
> > Hi,

>
> > I was wondering if someone can help me out with apropertygrid
> > problem.
> > Someone else made a program where I insert my script. This script has
> > some propertíes, which are specified like:

>
> > public string _firstProp;
> > public int _secondProp;

>
> > _firstProp = "Default Value";
> > _secondProp = 0;

>
> > public string firstProp
> > {
> > * *get {return _firstProp;}
> > * *set {_firstProp=value;}

>
> > }

>
> > public int secondProp
> > {
> > * *get{return _secondProp;}
> > * *set{_secondProp=value;}

>
> > }

>
> > therse parameters are used in apropertygrid. I would like to be able
> > tochangethe background of the cell and thefontof the cell, if (for
> > instance) _secondProp = 1 instead of 0.
> > Is that possible?
> > Kind regards,

>
> > Matthijs- Tekst uit oorspronkelijk bericht niet weergeven -

>
> - Tekst uit oorspronkelijk bericht weergeven -


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Change backgroundcolor if next record is different johan Microsoft Access 2 28th Aug 2007 01:50 PM
cell backgroundcolor =?Utf-8?B?U3RhcnRpbmcgdmJhIHByb2dyYW1tZXI=?= Microsoft Excel Programming 3 19th Dec 2005 10:18 AM
Change backgroundcolor wborg Microsoft Excel Misc 2 1st Dec 2005 02:13 AM
Change Font Color in cell Based on another cell value =?Utf-8?B?Sm9obg==?= Microsoft Excel Programming 2 18th Nov 2005 05:28 PM
Can you change ALL form.backgroundColor of a CERTAIN color??? Bob Microsoft Access Forms 2 15th Oct 2003 04:31 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:12 AM.