[Gambas-user] column width in gridview
Peter Mathijssen
pmathijssen at ...626...
Wed Jun 4 16:42:59 CEST 2008
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
More information about the User
mailing list