Jump to content

How to put focus on a specific cell of the TUniDBGrid component??


Juan Francisco

Recommended Posts

Hi, good evening, I'm working with the TUniDbGrid, I'm trying to put the focus on a specific cell, but at the moment I haven't found a clear solution, maybe you can help me.
In the following image I show the functionality that you want to get to do, for example when selecting the button positions the focus in the Area 3 column with the value 033, in another case that when selecting the button it will be positioned in the Area 1 column with the value 011, only in the row that is active, could this be done?

https://drive.google.com/file/d/1HF8wAGK0P3asENJeE72oBsqZLBugNXZK/view?usp=sharing

Link to comment
Share on other sites

14 hours ago, Sherzod said:

Hola,

¿Puede especificar primero qué edición y compilación de UniGUI está usando?

Edición:

Delphi 10.3.3

uniGUI Web Application Framework - Trial Edition 1.90.0 build 1547
evaluation Edition

Compilación:

32 Bits.

https://drive.google.com/file/d/1Bgn3EpwKmK_Q8TYP3hF-eb6sGgtnbcgg/view?usp=sharing

https://drive.google.com/file/d/1j_3aBifJb9zNX5lBlxSkaftREbyTptPA/view?usp=sharing

Link to comment
Share on other sites

  • 3 weeks later...
  • 5 months later...
  • 3 months later...
On 9/23/2022 at 9:44 PM, Juan Francisco said:

procedure TMainForm.UniButton1Click(Sender: TObject); begin with UniDBGrid1 do begin CurrCol:= 3; CurrRow:= 1; JSInterface.JSCode('Ext.select("#'+ JSId +' .x-grid-cell-selected").elements[0].scrollIntoView();'); end; end;

I get grayed DBGrid after this code

Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...