[Gambas-user] Gridview UnselectAll
Gianluigi
bagonergi at gmail.com
Mon Jan 29 13:46:44 CET 2018
If you open a modal form you can only use that one.
If you want to use the mainform when Form1 is open, you must open Form1
with Show.
Regards
Gianluigi
2018-01-29 13:26 GMT+01:00 Antonio Teixeira <antonio.j.teixeira at gmail.com>:
> Hi,
>
> We are using Gambas 3.9.1 and we found something wierd on gridview.
>
> The grid has just 1 column, several rows (dont mater how many) and is with
> single line selection activated.
> Clicking in a row a modal form open.
> We have a button that is used to unselect the selected line.
>
> Using the unselectall method he just work once.
>
> After starting the program, we select a line and the modal form opens.
> Then we press the button and the line become unselected.
> If we select another line (or the same), the form opens, and we close her.
> Then we press the button but nothing happens. The line remains selected.
>
> Any help?
>
> Thanks in advance.
>
>
> António Teixeira
>
> *Ths is the main form code (Just a gridview and a button):*
>
>
> Public Sub Form_Open()
> GridView1.x = 217
> GridView1.y = 70
> GridView1.w = 364
> GridView1.h = 469
> GridView1.Rows.count = 100
> GridView1.Rows.h = 30
> GridView1.Columns.count = 1
> GridView1.Mode = Select.Single
> End
>
> Public Sub Button2_Click()
> GridView1.UnSelectAll
> End
>
> Public Sub GridView1_Click()
> Form1.ShowModal
> End
>
>
> *The modal form (Just a button)*
>
> Public Sub Button1_Click()
> Me.close
> End
>
>
>
>
>
> --------------------------------------------------
>
> This is the Gambas Mailing List
> https://lists.gambas-basic.org/listinfo/user
>
> Hosted by https://www.hostsharing.net
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20180129/19d8c192/attachment.html>
More information about the User
mailing list