[Gambas-user] GridView Row Height

Tobias Boege taboege at ...626...
Sat Mar 14 18:30:42 CET 2015


On Sat, 14 Mar 2015, Nikola Rogozarski wrote:
> On Sat, Mar 14, 2015 at 4:31 PM, Fabien Bodard <gambas.fr at ...626...> wrote:
> > Le 14 mars 2015 12:36, "Nikola Rogozarski" <n.rogozarski at ...626...> a
> > ??crit
> > :
> > >
> > > Hello guys! Is there an example of how to setup the height of a row of a
> > > GridView, depending on the length of the content. I do not see properties
> > > of auto height. When filling the GridView I did this,
> > >
> > > For Each result
> > > GridView1[i,2].text = result!description
> > > GridView1[i,2].WordWrap = true
> > Gridview1[I,2].Height = -1
> >
> > > inc i
> > > Next
> > >
> > >  but without success.
> > >
> >
> Thank's Fabien, I tried it, but it appears the following error :
> '_GridView1_Cell.Height ' Is read only
> 

You guys are talking about row heights, right? Then you should operate on
rows instead of cells. Maybe Fabien meant to type

  GridView.Rows[I].Height = -1

Apparently (on my system), you need to do that after setting the text of
any cell in that row to make the height adjust.

Regards,
Tobi

-- 
"There's an old saying: Don't change anything... ever!" -- Mr. Monk




More information about the User mailing list