Custom ScrollView database

angel

Member
Licensed User
Longtime User
:sign0085:I have a ScrollViewer creation with two labels, I show the Information Base Data in each one of them, but always shows me the same value, attached File.
 
Last edited:

mc73

Well-Known Member
Licensed User
Longtime User
In the sub addRow, you should add just the last row of data, not looping through all rows. In your code, I see a loop which recreates the scrollview, but populates all labels with the very last values(0 to 1).
 
Upvote 0

angel

Member
Licensed User
Longtime User
Hello

I've been watching your modifications and are fine, I have another question I have seen in the forum that there cell_click event, I tried to add-it does not work, it is possible this event with different components, such as this with a label.

thanks
 
Upvote 0

angel

Member
Licensed User
Longtime User
Hi Klaus

When you select a row ScrollViewer, opened another view where I can edit them Data

Thanks
 
Upvote 0

angel

Member
Licensed User
Longtime User
If the example above there is a test, I added some more code and does not work

Sub pnlMed_CellClick
Dim rc As RowCol
Dim l As Label
l = Sender
rc = l.Tag
activity.Title = "Cell clicked: (" & rc.Row & ", " & rc.Col & ")"
End Sub


Thanks
 
Upvote 0

klaus

Expert
Licensed User
Longtime User
Why didn't you answer my questions ?
Whitout seeing the rest of the code it's impossible to help you !
We need to know how you populate the ScrollView.
What is the Button from the project in post#3 for?
The button click event is already handled in that program.
When you pick up code from other programs you need to understand what it is doing and then look if it suits your needs.

Best regards.
 
Upvote 0

angel

Member
Licensed User
Longtime User
I have parts made in different programs, I will create a single program and so commands.

Thank you.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…