<div dir="ltr"><div dir="ltr"><div dir="ltr">You can try this code:</div><div dir="ltr">'--------------------------------------------------------------<br></div><div dir="ltr">Public Sub Form_Open()<br><br>  Dim Headers As String[] = ["0123456789", "0123456789", "0123456789", "0123456789"]<br><br>  With GridView1<br>    .AutoResize = False<br>    .Header = GridView.Horizontal<br>  End With<br><br>  GridView1.Rows.Count = 1<br>  GridView1.Columns.Count = Headers.Count<br>  GridView1.Columns[0].Expand = True<br>  For i As Integer = 0 To Headers.Max<br>    GridView1.Columns[i].Title = Headers[i]<br>    GridView1[0, i].Text = String(30, "*")<br>  Next<br><br>End <br><br>Public Sub Form_Arrange()<br>  '' Try also with the de-commented code<br>  'GridView1.Columns.Width = -1<br><br>End</div><div dir="ltr">'-----------------------------------------------------------------<br></div><div>Regards</div><div>Gianluigi<br></div><div dir="ltr"><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno sab 2 feb 2019 alle ore 04:09 Denis Crowther <<a href="mailto:denisc@exemail.com.au">denisc@exemail.com.au</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I set the width to -1 which had no effect.<br>
Using expand, with or without the width = -1, worked.<br>
<br>
<br>
<br>
<br>
ps: Sorry Benoît, I didn't realise I had sent it to you personally.<br>
<br>
Regards<br>
Denis<br>
<br>
On 2/2/19 2:30 am, Benoît Minisini wrote:<br>
> Le 01/02/2019 à 15:53, T Lee Davidson a écrit :<br>
>> On 2/1/19 3:51 AM, Rolf-Werner Eilert wrote:<br>
>>> Now that I read your hint to use Arrange, of course I tried it, but <br>
>>> it has no effect.<br>
>>><br>
>>> Regards<br>
>>> Rolf<br>
>><br>
>> In my project, I am resizing the first column to give it all extra <br>
>> available width; like AutoResize, but for the first column verses the <br>
>> last. Using the Arrange event works perfectly. (Thank you for that <br>
>> guidance, Benoît.)<br>
>><br>
>><br>
>> ___<br>
>> Lee<br>
>><br>
> <br>
> Another way is setting the column width to "-1" or setting the column <br>
> Expand property to TRUE.<br>
> <br>
> Regards,<br>
> <br>
<br>
----[ Gambas mailing-list is hosted by <a href="https://www.hostsharing.net" rel="noreferrer" target="_blank">https://www.hostsharing.net</a> ]----<br>
</blockquote></div>