Alec_Gagne
Programmer
Greetings all you smart VFP people...
Maybe I am trying to do something that can't be done, but that is usually not the case with VFP!
I have a container object ('MyDispContainer') with other objects (shapes) inside that has been designed to display graphic representations of data. Similar to, but not exactly like, a slider control.
I want to embed this container in a grid column and have it update based on the data value of the record displayed in each row of the grid.
The issue, as you probably already know, is that a container object does not have a ControlSource property that can be used to bind to a field in the underlying table.
I have to set SPARSE=.F. in the grid column so that container is displayed, even though the default TextBox control for that grid column has been deleted/removed and the grid column CurrentControl='MyDispContainer'. If SPARSE=.T. the container simply does not display.
Since I cannot bind to the row data, I tried inserting some code into BeforeRowColChange method of the grid to simply update the container with the current row data but since SPARSE=.F. all the Container objects on each row of the grid update with the same values and that is not what I need.
Does anyone have any thoughts, strategies or clever trick for getting my container control to display the properly based on the underlying row data when the container has no ControlSource?
Thanks
A.J.
Maybe I am trying to do something that can't be done, but that is usually not the case with VFP!
I have a container object ('MyDispContainer') with other objects (shapes) inside that has been designed to display graphic representations of data. Similar to, but not exactly like, a slider control.
I want to embed this container in a grid column and have it update based on the data value of the record displayed in each row of the grid.
The issue, as you probably already know, is that a container object does not have a ControlSource property that can be used to bind to a field in the underlying table.
I have to set SPARSE=.F. in the grid column so that container is displayed, even though the default TextBox control for that grid column has been deleted/removed and the grid column CurrentControl='MyDispContainer'. If SPARSE=.T. the container simply does not display.
Since I cannot bind to the row data, I tried inserting some code into BeforeRowColChange method of the grid to simply update the container with the current row data but since SPARSE=.F. all the Container objects on each row of the grid update with the same values and that is not what I need.
Does anyone have any thoughts, strategies or clever trick for getting my container control to display the properly based on the underlying row data when the container has no ControlSource?
Thanks
A.J.