Jump to content


Photo

Dbgrids - change dgRowSelect at runtime

dgRowSelect

  • Please log in to reply
5 replies to this topic

#1 arilotta

arilotta

    Active Member

  • uniGUI Subscriber
  • PipPipPip
  • 66 posts
  • LocationTrieste, Italy

Posted 06 December 2017 - 04:36 PM

Hello, is it possible to change dgRowSelect for a DbGrid at runtime in any way ?


  • 0

#2 Delphi Developer

Delphi Developer

    Advanced Member

  • Moderators
  • 3648 posts

Posted 06 December 2017 - 05:16 PM

Hello,

 

Sorry, why do you need this ?


  • 0

#3 arilotta

arilotta

    Active Member

  • uniGUI Subscriber
  • PipPipPip
  • 66 posts
  • LocationTrieste, Italy

Posted 07 December 2017 - 07:37 AM

When the underlying dataset is in Browse mode, I would like the whole row to be selected.

When it is in Edit/Insert mode, the selection is column based.

 

It is just to give the user an additional graphical evidence of the dataset status, not something

I couldn't live without.

 

Thanks

Andrea


  • 0

#4 Delphi Developer

Delphi Developer

    Advanced Member

  • Moderators
  • 3648 posts

Posted 07 December 2017 - 09:40 AM

Hi,

 

To change the selectionModel in this way impossible in my opinion,
I think you can do this with CSS


  • 0

#5 arilotta

arilotta

    Active Member

  • uniGUI Subscriber
  • PipPipPip
  • 66 posts
  • LocationTrieste, Italy

Posted 07 December 2017 - 09:49 AM

It is not so important at the moment, maybe I'll have 2 grids with the 2 different settings and switch between them at run time.

 

Delphi Dev, please could you hava a look at the post "How to cancel "×" on the lookup field when dropdown" ?

 

This is very important and urgent to me, I need just your opinion.

Thank you


  • 0

#6 Delphi Developer

Delphi Developer

    Advanced Member

  • Moderators
  • 3648 posts

Posted 07 December 2017 - 10:08 AM

Hi,

 

This is very important and urgent to me, I need just your opinion.

Thank you

 

Please see this demo:

\FMSoft\Framework\uniGUI\Demos\Desktop\GridWithDBLookupCombo

  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users