ListView and Database

Shay

Well-Known Member
Licensed User
Longtime User
Hi

I have 2 questions:

1. I have in my table 2 column, one I wish to display and the second I don't
how do I add 1 column with data that will be hidden
2. how do I align the test to the right?

thanks
 

dealsmonkey

Active Member
Licensed User
Longtime User
Hi

I have 2 questions:

1. I have in my table 2 column, one I wish to display and the second I don't
how do I add 1 column with data that will be hidden
2. how do I align the test to the right?

thanks

Is the hidden column going to be used when the user clicks on a listview item ??
 
Upvote 0

Shay

Well-Known Member
Licensed User
Longtime User
yes (if no way I will use the .tag)

how do I align text to the right?

thanks
 
Upvote 0

Shay

Well-Known Member
Licensed User
Longtime User
did workaround
used the twolines and "convert" it into 1 line using itemheight
 
Upvote 0

klaus

Expert
Licensed User
Longtime User
Just a few questions:
- How do you fill the ListView ?
- Do you really need the second column ?
If no, you could use the ListView with a single line and just fill that one.
The text alignment to the right works the same way.
ListView1.SingleLineLayout.Label.Gravity = Gravity.RIGHT

Best regards.
 
Upvote 0

dealsmonkey

Active Member
Licensed User
Longtime User
Why not use a single line Listview with the column1 as the visible text and the column2 as the return value ?

lv.AddSingleLine2(Column1,Colum2)

The column2 value will be exposed in the listview_click sub.
 
Upvote 0

eps

Expert
Licensed User
Longtime User
Apols. I thought it was "obvious" - singlelinelayout, if you've got a single line or twolinelayout if you've got two lines and twolinelayoutandbmp if you've got two lines and a bitmap...

Hope it's all sorted tho!
 
Upvote 0
Top