Vlad,
>Hi!
>
>There are no way without subclassing.
That was what I was afraid for
>
>For what you need this functionality??? MANY things for grid could be done quite another way than just subclassing columns. I worked on the grid that do very complex processing for ALL columns in grid, but nether worked so slow even for grids with 200 columns.
I know, I even change all the headers with a custom class
Need it to HighLight the current row. (property of the grid: HighLightCurrentRow)
In the event that the DynamicBackColor is changed by program, I have to 'intercept' the assignment and change it,
eg grid.Columns(3).DynamicBackColor = 'rgb(255,0,0)'
is changed by the assigmethod (in case grid.HighLightCurrentRow = TRUE) to
[iif( recno(thisalias) == this.CurrentRecno, rgb(255,255,64), rgb(255,0,0))]
Simply put: I need an event to know that the DynamicBackColor of any column has changed
>
>I can also look to code and tell what could be improved and how to improve speed.
the rest of the code is fine, it's just the addition of 86 columns and the deletion of the 'old' 86 columns, preserving all the properties of the 'old' columns, like ColumnOrder, and the like
>>Hi all,
>>
>>Anyone's found a way to have Assign methods on eg Column.DynamicBackColor/ControlSource (with a hook or so) without subclassing the Column ?
>>
>>I have managed to do so by subclassing the Column and by simply replacing all the columns in the Grid.Init() by a custom Class Column. It's working well.
>>
>>The only drawback, however, is the time it takes to handle grids with a lot of columns. I have a grid with 86 columns (and still growing) and it takes 2.5 sec (500 MHz), which I find too long to be added to the form's load time.
>>
>>Thanks in advance
Gregory