Skip navigation.
 
mlGetting the values from the selected row of a table?
FROM : John Velman
DATE : Tue Oct 07 20:55:21 2008

I need to get the value of the primary key (shown in the table) of the
selected row of my table, no matter how the table is sorted interactively.

I'm able to get the selected row index, but this seems to give the
"geographic" index of the selected row in the table, as sorted.

So far, I've solved my problem by ensuring that the table source is sorted
by it's primary key, and blocking sorting in the table itself.  This is not
too bad  for my application (in it's current state, at least),  but
eventually I'd like to be able to sort the table interactively and map the
selection back to the original data.

I'm using IB and key value binding, and registering a notification to get
the fact of selection did change.


Thanks,

John Velman

Related mailsAuthorDate
mlGetting the values from the selected row of a table? John Velman Oct 7, 20:55
mlRe: Getting the values from the selected row of a table? I. Savant Oct 7, 21:10
mlRe: Getting the values from the selected row of a table? John Velman Oct 7, 22:23
mlRe: Getting the values from the selected row of a table? Graham Cox Oct 8, 00:53