Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

alignment of text in control on a grid 1

Status
Not open for further replies.

sdocker

IS-IT--Management
Aug 12, 2010
218
GB
Hi again,

I have a grid with 3 columns: 1. CheckBox, 2. TextBox, 3. TextBox. . .

Column Property.Alignment = Middle Center, Middle Left, Middle Left
Column Header Alignment = Middle Center, Middle Center, Middle Center
All columns ControlSopurce is an SQL cursor
Column 1. ReadOnly = .F., 2 and 3 are .T.

The problem is...
Column 2 and 3 appear at the top of the row. I would expected them to be vertically centered.

What's interesting is, if I click on either column 2 or 3, the entire column realigns correctly, and then if I click on the other column, the clicked row and 1 or 2 other rows align correctly.

I remember seeing a similar issue in this forum, but I can't seem to locate it.

Thanks,
Sam
 
How about setting Sparse=.F.?

There is a difference in the active and nonactive cells/rows in regard of formatting. The grid has standard textbox controls in all cells and what you override is just the active row. The grid has one row only anway, the rest is repeatedly drawn. Setting Sparse=.F. for a column makes the grid draw all rows with the row control.

Bye, Olaf.
 
Olaf,

They were set to .F.

I left Column 1 as it was, (.F.) and changed 2 and 3 to .T.

All seems to be working fine.

Thank you,
Sam
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top