[Solved] GridView Highlight selected row
Posted
#1
(In Topic #635)
Enthusiast

this may be a simple thing but i can not work this out and even google is not returning what I wanted
What I want to do is when a row cell / row is clicked on a gridview I would like the entire row to be selected (highlighted)
can this be done with Gambas?
Posted
Guru

Posted
Guru

You have to set GridVew1.Mode property to single or multiple
Posted
Enthusiast

BruceSteers said
GridView1.Rows[GridView1.Row].Selected = True
BruceSteers said
Hang on, it should do it anyway.
You have to set GridVew1.Mode property to single or multiple
Hi BruceSteers
Thank you for the advice that was JUST what I wanted with the combo of GridView1.Rows[GridView1.Row].Selected = True after I have set focus to the grid it works perfectly.
Thank-you again
Andy
1 guest and 0 members have just viewed this.



