CITATION(D2P @ 07/05/2007 à 12:46 )

J'ai un problème avec un GridEx lors du passage en 320x480...
Si je définis la hauteur du GridEx de manière optimale pour l'affichage en 320x320 (pour afficher 9 lignes par exemple), il affiche le début d'une ligne tronquée en bas d'écran quand je suis en 320x480

Et cette ligne ne peut pas être sélectionnée par un tap...
Salut André,
En effet le GridEx n'a pas la méthode VisibleItems du Grid, mais tu peux en effet contourner cela dans le resize, en utilisant la hauteur de chaque ligne mais aussi les propriétés EnsureVisible et ColumnHeight.
Regarde dans la doc:
CODE
The [b]ColumnHeight [/b]property sets or retrieves the height of the cells in the column specified by the iCol parameter, expressed in standard coordinates. The first column index is 0. Calling this property specifying a column index less than zero or greater than the number of column -1 raises a runtime error.
The height of a row is given by the maximum height of the cells in this row. The iHeight parameter must be greater than zero. No other check is performed on columns heights; it is up to the programmer to ensure that each row can be entirely displayed within the control height.
If a column height is changed and the Redraw property is set to True, the display is updated immediately.
Si tu as besoin d'un coup de main, n'hésite pas
A+
Eric.