You are right, that's the elegant solution: ListView1.SelectAll(False) It is always good to read the docs carefully (which I didn't)
Am 15.10.2010 21:56, schrieb user: > Hm, i think i found it.... > > > ListView.SelectAll (gb.qt) > Syntax > > ------------------------------ > SUB SelectAll ( [ Selected AS Boolean ] ) > ------------------------------ > > Selects or deselects all items in the view. > > * If Selected is TRUE, then all items are selected. This is the > default value. > * If Selected is FALSE, then all items are deselected. > > > > On Fri, 2010-10-15 at 21:10 +0200, Matti wrote: >> >From the docs: >> .ListViewItem.Selected >> PROPERTY Selected AS Boolean >> Indicates if the item is selected >> >> I tried it (Gambas3) like this: >> ListView1.MoveFirst >> Do While ListView1.Item >> ListView1.Item.Selected = False >> ListView1.MoveNext >> Loop >> >> Probably, there are more elegant ways, but it works. >> >> Regards >> Matti >> >> >> Am 15.10.2010 18:28, schrieb user: >>> Hi to all again, >>> >>> In a GridView we can unselect the selected rows as following >>> >>> grdResults.Rows.Unselect >>> >>> In a ListView control when i want to unselect how we can do it? >>> >>> i try to find something like >>> >>> lswResults.Items.Unselect >>> >>> but there is no Items (as there is Rows class for grd) class or >>> something similar. >>> >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> Download new Adobe(R) Flash(R) Builder(TM) 4 >>> The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly >>> Flex(R) Builder(TM)) enable the development of rich applications that run >>> across multiple browsers and platforms. Download your free trials today! >>> http://p.sf.net/sfu/adobe-dev2dev >>> _______________________________________________ >>> Gambas-user mailing list >>> Gambas-user@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> >> ------------------------------------------------------------------------------ >> Download new Adobe(R) Flash(R) Builder(TM) 4 >> The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly >> Flex(R) Builder(TM)) enable the development of rich applications that run >> across multiple browsers and platforms. Download your free trials today! >> http://p.sf.net/sfu/adobe-dev2dev >> _______________________________________________ >> Gambas-user mailing list >> Gambas-user@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > > > ------------------------------------------------------------------------------ > Download new Adobe(R) Flash(R) Builder(TM) 4 > The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly > Flex(R) Builder(TM)) enable the development of rich applications that run > across multiple browsers and platforms. Download your free trials today! > http://p.sf.net/sfu/adobe-dev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------------------------ Download new Adobe(R) Flash(R) Builder(TM) 4 The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly Flex(R) Builder(TM)) enable the development of rich applications that run across multiple browsers and platforms. Download your free trials today! http://p.sf.net/sfu/adobe-dev2dev _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user