> > In my concreate task I need to change
> > DataGridTextBoxColumn.DataGridTableStyle.BackBrush field value (at
> > run-time)
> > just before Paint(..) starts?
> Why do you need to this?
This is the development of ExtenderProvider idea. I wanted to create
something that can be named as "DataTableColumnStyle extender" :-) ...
> Can't you do it some time beforehand? What's the
> reason you can't you derive your own class from the column class and
> override the Paint method?
In my case this is possible. Here I'm looking for best design solution.
Thank you Fabian.
Fabian Schmied - 21 Jun 2004 09:12 GMT
> This is the development of ExtenderProvider idea. I wanted to create
> something that can be named as "DataTableColumnStyle extender" :-) ...
One thing I could think of is to create create an in-memory class derived
from the DataGridTextBoxColumn class (using CodeDom or Reflection.Emit, as
I said).
>> Can't you do it some time beforehand? What's the
>> reason you can't you derive your own class from the column class and
>> override the Paint method?
>
> In my case this is possible. Here I'm looking for best design solution.
I fear, there is not much you can do with the possibilities provided by
Reflection (or .NET), apart from what I mentioned. I guess to get the best
design solution, you would need to use aspects. But I don't know of any
functional aspect-oriented programming tool for .NET you could use.
Fabian

Signature
Using Opera's revolutionary e-mail client: http://www.opera.com/m2/