<div dir="ltr"><div dir="ltr">Here it deletes the contents but leaves the lines.<br>Tested with gtk, gtk3, qt4, qt5.<br><br>[System]<br>Gambas=3.12.90 66b357d (master)<br>OperatingSystem=Linux<br>Kernel=4.15.0-45-generic<br>Architecture=x86_64<br>Distribution=Ubuntu 18.04.1 LTS<br>Desktop=UBUNTU:GNOME<br>Theme=Fusion<br>Language=it_IT.UTF-8<br><br>Regards<br>Gianluigi<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno sab 9 feb 2019 alle ore 02:29 Bruce <<a href="mailto:adamnt42@gmail.com">adamnt42@gmail.com</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">Hmm, odd.<br>
It works here (Rows.Count=0 after a Clear).<br>
Both QT4 and QT5.<br>
What GUI are you using?<br>
B<br>
<br>
On 9/2/19 11:47 am, T Lee Davidson wrote:<br>
> On 9/2/18 2:35 PM, Benoît Minisini wrote:<br>
>> Le 02/09/2018 à 20:33, Benoît Minisini a écrit :<br>
>>> Le 02/09/2018 à 19:20, Jorge Carrión a écrit :<br>
>>>> The help says that "Clear the grid static contents".<br>
>>>> What is this static content composed of?<br>
>>>> Rows and columns size? Cell content? position on screen?<br>
>>>><br>
>>>> Best Regards<br>
>>>><br>
>>><br>
>>> Wait a minute, I'm looking into the source code... :-)<br>
>>><br>
>><br>
>> It clears the contents that you defined explicitly (not what you draw <br>
>> through the Data event) and that is stored inside the GridView <br>
>> control. And it sets the rows count to zero. But it keeps the columns.<br>
>><br>
> <br>
> GridView.Clear does not appear to set the rows count to zero.<br>
> <br>
> Did I misunderstand this, or has something changed since a *year* ago?<br>
> <br>
> ' Gambas class file<br>
> <br>
> Public Sub Form_Open()<br>
> <br>
>    GridView1.Rows.Count = 10<br>
>    GridView1.Columns.Count = 2<br>
> <br>
>    For x As Integer = 0 To GridView1.Rows.Max<br>
>      For y As Integer = 0 To GridView1.Columns.Max<br>
>        GridView1[x, y].Text = x & ":" & y<br>
>      Next<br>
>    Next<br>
> <br>
> End<br>
> <br>
> Public Sub Button1_Click()<br>
> <br>
>    GridView1.Clear<br>
>    GridView1.Refresh ' Makes no difference<br>
>    Debug GridView1.Rows.Count<br>
> <br>
> End<br>
> <br>
> <br>
> ___<br>
> Lee<br>
> <br>
> ----[ Gambas mailing-list is hosted by <a href="https://www.hostsharing.net" rel="noreferrer" target="_blank">https://www.hostsharing.net</a> ]----<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>