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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Datawindow Detail Row Height

Status
Not open for further replies.

eiSeR

Programmer
Aug 19, 2003
7
PH
Can the row height of a datawindow be resized differently for each row? Meaning, row 1 can have a different height from row 2 but belonging to the same datawindow.

Thanks! Hope to hear from you soon...
 
You may set the AutoSizeHeight attribute of Detail Band as well as the Column(s) to TRUE. These resize the height of the detail band dynamically depending on the data.

---
PowerObject!
-----------------------------------------
PowerBuilder / PFC Developers' Group
 
Since my columns have a box border, if the columns don't have data and I use AutoSize height, the column wouldn't display even the box. And if I use autosize height the each column will have different row height depending on the data supplied. What I wanted is to produce a row with its columns with same height depending on the column with the most number of characters.

Let's say I have a datawindow with columns name, address and phone number. Since address could accept longer character length, if the address exceeds the maximum number of characters that would fit the display I must resize name, address and phone number.
 
Such minute fine-tuning is not possible in a DataWindow. You could however, determine the maximum length of data in your address column at design time and size the height of all the other columns to the height of the maximum height of the address column.

---
PowerObject!
-----------------------------------------
PowerBuilder / PFC Developers' Group
 
An invisible column object stores the number of lines the row must have. I use this as a multiplier for the row height. Row height is being computed at the height property at the Expressions tab.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top