how sharepoint lookup column store its values?

Posted by ps123 on Stack Overflow See other posts from Stack Overflow or by ps123
Published on 2010-03-11T05:39:42Z Indexed on 2010/03/11 5:43 UTC
Read the original article Hit count: 157

Filed under:

Hello,

I was trying to create a custom field type similar to lookup column just mine is filtered lookup column.Its working fine but I wanted to implement the same functionality like lookup column does,by that I mean:

For e.g lookup column is having title of some list so it stores its value as

SPListiem.ID#;title....but it shows only title when we r selecting or editing value in it.

I am using listboxes and doing

listbox.Items.Add(title);

but how to get Id also and specially hidden from users like lookup column does....means I can do like this... listbox.Items.Add(title+"#;" + SPListitem.ID)...

but I dont want this....

Any idea how to achieve this...

© Stack Overflow or respective owner

Related posts about sharepoint2007