[Gambas-user] column width in gridview

Stefano Palmeri rospolosco at ...152...
Wed Jun 4 17:13:58 CEST 2008


Il Wednesday 04 June 2008 16:42:59 Peter Mathijssen ha scritto:
> Hi,
>
> With this code i can set the width of the columns.
>
> WITH GridView1
>     .Columns.Count = 2
>     .Rows.Count = 0
>     .Columns[0].Width = 250
>     .Columns[0].Text = lblcommand.Text
>     .Columns[1].Width = 500
>     .Columns[1].Text = lbldescription.Text
>
> END WITH
>
> When i don't set the column width i get a small first column and a second
> column that is large enough to hold the whole text.
>
> But when i use the columns.width property i always get a smaller second
> column. So not all text is displayed.
>
> I tested a little. I seems that as long as i set the width of the second
> column smaller then the width of the first one i can set it's width. Is the
> width of the second column larger then that of the first one it doesn't
> work.
>
> If i only set the width of the first column, the second one gets the same
> width.
>
> Does anyone has this too?
>
> Peter

Hi Peter,

Try:

GridView1.ScrollBar = Scroll.Both

and see if problem goes away.

Bye,

Stefano

> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user




More information about the User mailing list