<i><font color="#663300"> </font></i>The second problem I have is changing the atrtributes of a particular cell in the grid. How can one address a cell like that? Is it the Visible property of the text box that is being changed or the CurrentControl of the column, or both? Which leads to my third problem, which is how to have multiple controls being used within the same column?
to reference the controls you need to run back up the hierarchy: container:grid:column:control. I have found it difficult to reference grid controls unless from a parent container. Trying to do it within the grid seems to 'confuse' the grid.
It is the visible property of the textbox which is referenced. As I said this technique works well if you want to use a combobox to change a column value but doing this causes refresh() delays so overlaying with an already propulated textbox (created in the initial view) solves the problem.</font></i>
This is where I am having trouble. When I set the visible property of the text1 texbox in a column to .F. in a command button on the form, I can only 'see' the change when that column has the focus. Even if I use the command button to change the current control of the column, the new control is only visible when the cell has the focus. I changed the Sparse property to .F. so that the entire column would show the change when the column got the focus, but even then, the text2 control did not become visible whenthe text1 control's visible property was set to false and the column was given the focus. That only happened when I changed the CurrentControl of the column. As far as the addressing problem, I was more interested if you had found a way to address a particular cell of the grid (column as well as ROW). I do not believe it is possible to change the attributes of an individual cell's control without affecting the entire column's controls. Devman mdevlin .AT. ajdebruin D.O.T com
©2001 Mike Devlin |