[Gambas-user] Selection from GridView

Ricardo Díaz Martín oceanosoftlapalma at ...626...
Fri Sep 11 09:10:35 CEST 2009


I think you have a bug in your gambas2 version.

What distro are you using? (I always run gambas in ubuntu because I've got
problems with fedora and opensuse and the instalation in ubuntu form sources
are easy and clear - you can see step by step in gambasdoc.org) Are you
using your distro repositories to install gambas2? gnome or KDE?

I confirm to you I can't cancel the selection by click at the same row. This
is only possible by theGridView.Rows.Unselect (I think this is one of the
differences whith listbox control, but I allways use gridviews and no
ListBoxes because I'm a databases programmer and allways hide first or more
columns to get from this the id of the rows after)

Multiple is the correct value for do that you want.

I recomended to you you try to compile gambas2 from souces in souceforge
using Ubuntu (Ubuntu is not the best distro but I use this because gambas
run fine and it's easy and fast to deploy my apps using freenx)

Regards,

2009/9/10 Aleksandrs Livshics <aleks.l at ...1865...>

> Thank you. I was not clear enough, sorry. The problem is not
> with programming, but with the selection by mouse and keyboard.
> The Ctrl and Shift do not work the way they do with the ListBox for
> example. The only way to select more then one row is to drag
> the mouse cursor keeping the left button pressed. But then
> only the consequent rows can be chosen.
> Also I cannot cancel the selection. Only if I select another row..
> If I click on a selected row or double click on it nothing happens.
> It is NOT the same as in the case of ListBox.
> I must also mention that I have set the mode of the GridView to multiple.
> I hope now my question is clear.
>
> On Thursday 10 September 2009 09:55:12 Ricardo Díaz Martín wrote:
> > To do the first write (select first, third and sixth rows -
> gvYourGridView
> > is the name of the gridview in your form)
> >
> > gvYourGridView.Rows.[0].Selected = True
> > gvYourGridView.Rows.[2].Selected = True
> > gvYourGridView.Rows.[5].Selected = True
> >
> > To do the second only write
> >
> > gvYourGridView.Rows.Unselect
> >
> >
> > Regards,
> > Ricardo Díaz
> >
> > 2009/9/9 Aleksandrs Livshics <aleks.l at ...1865...>
> >
> > > Hi Gambas users.
> > > I cannot fond how to select several rows from a GridView.
> > > The difficulty happens only if the rows to select are not
> > > consequent. If there is a simple interval of rows, then
> > > selection works well, but if I want to select, say, row1
> > > and row5 ?
> > > Also how can a row selection be canceled without
> > > selecting of another row? Just mouse click on the
> > > selected row does not cancel the selection...
> > > My version is 2.7.
> > > Aleks
> > >
> > >
> > >
> -------------------------------------------------------------------------
> > >----- Let Crystal Reports handle the reporting - Free Crystal Reports
> 2008
> > > 30-Day trial. Simplify your report design, integration and deployment -
> > > and focus on
> > > what you do best, core application coding. Discover what's new with
> > > Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> > > _______________________________________________
> > > Gambas-user mailing list
> > > Gambas-user at lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/gambas-user
> >
> >
> ---------------------------------------------------------------------------
> >--- Let Crystal Reports handle the reporting - Free Crystal Reports 2008
> > 30-Day trial. Simplify your report design, integration and deployment -
> and
> > focus on what you do best, core application coding. Discover what's new
> > with Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> > _______________________________________________
> > Gambas-user mailing list
> > Gambas-user at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
>
>
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus
> on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



More information about the User mailing list