[Gambas-user] Selection from GridView

Aleksandrs Livshics aleks.l at ...1865...
Thu Sep 10 11:17:14 CEST 2009


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





More information about the User mailing list