[Gambas-user] Removing lines (rows) from GridView

Steven Lobbezoo steven at ...1652...
Wed May 23 20:36:34 CEST 2007


Hi,
I did this :
DIM r AS Integer

  WITH GridView1
    FOR r = .Row TO .Rows.Count - 2
      GridView1[r, 0].Text = GridView1[r + 1, 0].Text
      GridView1[r, 1].Text = GridView1[r + 1, 1].Text
      GridView1[r, 2].Text = GridView1[r + 1, 2].Text
      GridView1[r, 3].Text = GridView1[r + 1, 3].Text
      GridView1[r, 4].Text = GridView1[r + 1, 4].Text
      GridView1[r, 5].Text = GridView1[r + 1, 5].Text
    NEXT 
    .Rows.Count = .Rows.Count - 1 
  END WITH

Steven

Le mercredi 23 mai 2007 20:08, Hamilton Geminiano Andrioli Junior a écrit :
> No i have a grid filled, and i need do remove a line clicked bay the
> user....
>
> how?
>
>
> ----- Original Message -----
> From: "Gareth Bult" <gareth at ...1689...>
> To: "mailing list for gambas users" <gambas-user at lists.sourceforge.net>
> Sent: Wednesday, May 23, 2007 2:47 PM
> Subject: Re: [Gambas-user] Removing lines (rows) from GridView
>
> > Hi,
> >
> > Assuming (!) you're filling the grid with the Data event;
> >
> > grid.Rows.Count -= 1
> >
> > :-)
> >
> > Gareth.
> >
> > ----- Original Message -----
> > From: "Hamilton Geminiano Andrioli Junior" <handriolijr at ...626...>
> > To: gambas-user at lists.sourceforge.net
> > Sent: Wednesday, May 23, 2007 6:29:00 PM (GMT) Europe/London
> > Subject: [Gambas-user] Removing lines (rows) from GridView
> >
> > Hi there, how can i remove lines (rows) fron a gridview?
> > Please...
> >
> >
> > Hamilton From Brazil
> > -------------------------------------------------------------------------
> > This SF.net email is sponsored by DB2 Express
> > Download DB2 Express C - the FREE version of DB2 express and take
> > control of your XML. No limits. Just data. Click to get it now.
> > http://sourceforge.net/powerbar/db2/
> > _______________________________________________
> > Gambas-user mailing list
> > Gambas-user at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
> >
> >
> > --
> > Gareth Bult, Encryptec Limited
> > Tel: 0845 25 77033, FWD: 753977, Mob: 07891 389657
> > Email: gareth at ...1689...
> >
> > Statements made are at all times subject to Encryptec's Terms and
> > Conditions of Business, which are available upon request.
> >
> >
> > -------------------------------------------------------------------------
> > This SF.net email is sponsored by DB2 Express
> > Download DB2 Express C - the FREE version of DB2 express and take
> > control of your XML. No limits. Just data. Click to get it now.
> > http://sourceforge.net/powerbar/db2/
> > _______________________________________________
> > Gambas-user mailing list
> > Gambas-user at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> 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