Jump to content


Photo

Can a row be selected by code?


  • Please log in to reply
4 replies to this topic

#1 Alfredoc

Alfredoc
  • Members
  • 11 posts

Posted 23 March 2022 - 03:39 AM

Can one or several rows be selected by code?



#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,194 posts
  • Gender:Male

Posted 23 March 2022 - 06:44 PM

Hi,

 

For this purpose you can use SelectedRow (reference: http://developer.ber...=127&lang=en-us) for full row selection, or you can use SelectCell method to select single cell.

 

I hope that this helps.


boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#3 Alfredoc

Alfredoc
  • Members
  • 11 posts

Posted 23 March 2022 - 08:20 PM

Sorry. I don't know how to make it work  :unsure:

 

SelectFullRow:= True

Attached Files



#4 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,194 posts
  • Gender:Male

Posted 25 March 2022 - 01:38 PM

Hi,

 

You also need to set HideSelection property of the grid to False. That way selection will not be hidden when grid is not focused.

 

I hope that it will work now.


boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#5 Alfredoc

Alfredoc
  • Members
  • 11 posts

Posted 28 March 2022 - 05:13 AM

Thanks a lot. It has been good for me






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users