Return Column Header Text on Right Click of listbox

Pauldohert

Something in here
Local time
Today, 15:31
Joined
Apr 6, 2004
Messages
2,101
How do I return the Column Header Text on Right Click of listbox?


Thanks
 
Its based upon a query.
 
if you select the combox and look at the properties on the format tab set column heads to yes.

now when you click on the combo box the column headings will appear
 
Thanks - what I want though is to be able to tell which column I mouse click in and to return the column header.

I have the column headers showing - just need to recognise which column I click in. (I probably didn't explain that very well)
 
IMO,

You can only accomplish that programmatically. There's no such setting in its property for something like that.

A multiple-column listbox only returns its bound-column's value and in turn only is able to give you the header of that column programmatically by using an if-then statement to check for the value for the column and return the appropriate header. (Correct me if I'm wrong :))

For something like what you want, neither listboxes nor comboboxes will work. Some controls like FlexGrid or HFlexGrid will do the trick as they allow use to select a single cell instead.
 

Users who are viewing this thread

Back
Top Bottom