Viel
  • Viel
  • Newbie Topic Starter
2018-12-10T13:45:30Z
Hi,
I used the methods:
.AutoHeight
.AutoHeights
on the same set of records and I have obtained different behaviors.

In the attach immages, see rows for "Commessa E130/164"
with .AutoHeight sometimes seems to calculate an excessive height
while with .AutoHeights always seems to calculate an excessive height.

Thant you for any help

AutoHeightRow.JPG

Click to View Image132 View(s)


AutoHeightRows.JPG

Click to View Image134 View(s)

Igor/10Tec
2018-12-10T15:19:00Z
Where are the images? What version of iGrid are you using?

To fix the problem, we need a sample to reproduce it. Can you send us such a sample?
Viel
  • Viel
  • Newbie Topic Starter
2018-12-12T08:51:33Z
hi,
I understood why it did not seem to work .AutoHeigthRows.
The visibility (.ColVisible) and the width of the columns (.ColWidth) must absolutely precede .AutoHeigthRows (or .AutoHeigthRow)
I suppose that to adjust the height of the rows after changing the width of the columns it was necessary to invoke the ColWidthChanged event and then reapply .AutoHeigthRows
and repeat .AutoHeigthRows after every variation of .ColVisible attribute.

thank you
Igor/10Tec
2018-12-12T14:42:35Z
Yes, you are right. When iGrid calculates the optimal height of a cell in a row, it uses the current column width. So you should set column widths before you call AutoHeightRow/AutoHeightRows.