[Gambas-user] Stretchable GridView

Benoît Minisini gambas at ...1...
Fri Nov 30 20:20:49 CET 2012


Le 30/11/2012 20:14, M. Cs. a écrit :
> I have a GridView with constant number of rows.The rows are painted with
> different colors than the GUI's background. How it is possible to set the
> grid view to loose the white area on the bottom of the gridView? The Form
> is resizeable and I would like to have gridView's area filled with the 9
> rows regardless of the Form's state.
>
> Thanks!
>

If you use the development version, you can use GridView.ClientH to know 
the size of the client area, and then resize the rows accordingly.

Set the most common row height with the GridView.Rows.Height property, 
it's faster that setting the height for each row.

Regards,

-- 
Benoît Minisini




More information about the User mailing list