Sharing a grid created with dynamic components.
Hi everyone.
I share a small project where I am testing a data grid created with the dynamic component (fantastic, thanks to its creator).
This project can be useful to many, the source may not be optimized, I hope it is clear.
I show you below a video of what it does.
I ask for your cooperation to solve 3 problems:
The header must remain fixed, only the other lines must scroll vertically. (this was partially addressed with the dynamic component’s move event, fantastic).
If you try to insert about 50 lines, first scrolling down and then left and right, it will happen that the focus will be automatically captured by the first line, it seems a bit of an anomaly.
I would like the keyboard not to show when I enter any grid textbox. I don’t want to fix this with the clock because you would see something unpleasant.
Create a new arrangement above your Grid, And create only the first row in there. So it will allways stay on top. Even if you try to „move“ it with the extension.
2 and 3:
If you don’t want to enter text, make it a Label not a text box.
And even with that you could paste text from the clipboard when clicked on the Label.
Thank you for your answer. The problem is that the first line has to stay fixed when I scroll vertically, but it has to slide horizontally together with the others.
I have corrected my logic and now it works. Thank you.
I will post an updated version of my test project.
Now I am left with the keyboard problem that I cannot hide, for this problem I will evaluate the use of labels instead of textboxes, but I don’t like this solution.
I had already tried to manage it in gotfocus, but it doesn’t work. Evidently the event showing the keyboard is executed after the gotfocus.
It seems that this request doesn’t make sense, but to me it does.
This table that I am testing, I will have to insert it in a bigger app that I am developing, a mini management software.
I am imprinting it with function keys where the user will often not write text, but will do research, insert a date, numbers, calculated data etc. and when he wants to, he has an “Edit” button underneath that will bring up the keyboard.
I saw your idea. I like her, she’s “nice”, I’ll think about it.
But it does mean creating other components and slowing down the loading of the grid.
I think about it, but thank you @Still-learning@Ded_Sec_00 very much for your support.
Hello everyone, I’m trying not to use textboxes, but labels and only by pressing the edit button, I will replace a textbox in the cell.
I have to solve another problem first:
I want to be able to indicate the row and cell number on which it must position itself, so it must scroll to that position, which the gotFocus event of the textBox works on. How can I manage this event? In the Labels I don’t have gotFocus, I’m trying with Invoke by dynamic component, but without success.
I’m trying to use labels instead of textboxes because I then want to insert a single “Edit” button that will replace the selected label with a textbox and I’m going to type with the keyboard.
As long as I shouldn’t have any problems.
I have set the cel and row fields and a “go to” button with which I select the cell and the row concerned.
This works too.
Now I would like that when I ask to select row x and cell y, in addition to selecting it, it makes me scroll either vertically or horizontally.
This happens automatically with the textboxes because it enters the gotFocus event, I would like to be able to manage this also with the Labels.