[Gambas-user] gridview return text/value from mouse click
    Stefano Palmeri 
    rospolosco at ...152...
       
    Sat Jun 13 23:32:35 CEST 2009
    
    
  
Il sabato 13 giugno 2009 22:35:55 thesheff17 ha scritto:
> I have gridview that has the mode is set to single to select a single row.
> How do I get the value of the row that was clicked? Or get the x coordinate
> value of the row that is clicked?
Let's say your gridview is called GridView1 and you
want to know the content of a certain grid cell when
you click on it:
PUBLIC SUB Gridview1_Click()
  
  DIM iRow, iColumn AS Integer
  DIM sCellText AS String  
  iRow = LAST.Row
  iColumn = LAST.Column
    
  sCellText = Gridview1[iRow, iColumn].Text
END
Bye,
Stefano
    
    
More information about the User
mailing list