On Sat, 14 Mar 2015, Nikola Rogozarski wrote: > On Sat, Mar 14, 2015 at 4:31 PM, Fabien Bodard <gambas...@gmail.com> wrote: > > Le 14 mars 2015 12:36, "Nikola Rogozarski" <n.rogozar...@gmail.com> 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 ------------------------------------------------------------------------------ Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user