Hi Chike,
I beleive it will be easier to introduce an additional property called
IsNotActive :-)
However, if this is out of the question, you can probably make good use of
the Binding class' Format and Parse events to carry out the inverstion on
the fly.
--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE
"Chike J. Okor" <ch***@okor.co.uk> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Is it possible to Databind to an expression? I have a collection of
classes and one of the properties returns a boolean value. I'm trying to databind
to the "inverse" of the boolean value as such
TextBox1.DataBindings.Add("ReadOnly",customers,"Is Active");
I need to bind this to the Inverse of IsActive (!IsActive) and not
IsActive itself ... it this possible?
Thanx
Chike, London