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?
[Solved] GridView Highlight selected row
-
- Posts: 362
- Joined: Wednesday 2nd December 2020 12:11am
- Location: Northampton, England
- Contact:
[Solved] GridView Highlight selected row
Last edited by AndyGable on Wednesday 14th April 2021 7:33pm, edited 1 time in total.
- BruceSteers
- Posts: 1563
- Joined: Thursday 23rd July 2020 5:20pm
- Location: Isle of Wight
- Contact:
Re: GridView Highlight selected row
GridView1.Rows[GridView1.Row].Selected = True
Last edited by BruceSteers on Tuesday 13th April 2021 9:15am, edited 1 time in total.
If at first you don't succeed , try doing something differently.
BruceS
BruceS
- BruceSteers
- Posts: 1563
- Joined: Thursday 23rd July 2020 5:20pm
- Location: Isle of Wight
- Contact:
Re: GridView Highlight selected row
Hang on, it should do it anyway.
You have to set GridVew1.Mode property to single or multiple
You have to set GridVew1.Mode property to single or multiple
If at first you don't succeed , try doing something differently.
BruceS
BruceS
-
- Posts: 362
- Joined: Wednesday 2nd December 2020 12:11am
- Location: Northampton, England
- Contact:
Re: GridView Highlight selected row
Hi BruceSteersBruceSteers wrote: ↑Monday 12th April 2021 10:40pm Hang on, it should do it anyway.
You have to set GridVew1.Mode property to single or multiple
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