[Solved] GridView Highlight selected row

Post

Posted
Rating:
#1 (In Topic #635)
Enthusiast
AndyGable is in the usergroup ‘Enthusiast’
 Hi all,

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?
Online now: No Back to the top

Post

Posted
Rating:
#2
Guru
BruceSteers is in the usergroup ‘Guru’
 GridView1.Rows[GridView1.Row].Selected = True
Online now: No Back to the top

Post

Posted
Rating:
#3
Guru
BruceSteers is in the usergroup ‘Guru’
 Hang on, it should do it anyway.

You have to set GridVew1.Mode property to single or multiple
Online now: No Back to the top

Post

Posted
Rating:
#4
Enthusiast
AndyGable is in the usergroup ‘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
Online now: No Back to the top
1 guest and 0 members have just viewed this.