DynamicAlignment
This column property determines how contained controls should be aligned.
Usage |
grcColumn.DynamicAlignment = cExpression cExpression = grcColumn.DynamicAlignment |
Sometimes DynamicAlignment is too dynamic. When moving up or down a column of cells where alignment changes from cell to cell (particularly if Sparse if .F.), the current cell can occasionally be seen to "jump" to one of the other alignments when the cursor key is pressed to move into a cell with different alignment. We suspect that the DynamicAlignment is being evaluated for the cell about to receive the focus, but inadvertently is applied to the current cell. As soon as the new cell receives the focus, the older cell is redrawn correctly, but the momentary wiggle is distracting. We've seen similar problems with simple, non-dynamic Alignment as well—see that section for details. |
Example |
grcColumn.DynamicAlignment = "iif(nValue<nThreshold,0,1)" |
See Also |