In the UITableViewController, you could use a list of objects as your
source, and store the key in there (so have the display name, and key,
in the same class)

eg: 
http://www.yetanotherchris.me/home/2010/10/18/uitableviewcontroller-by-example.html

if you change the MainTableDataSource to have an internal list of
objects, not strings, you can store it in there. Then from your
MainTableDelegate, when it's selected, you can just look it up in that
same list and grab the item out.


Personally, I use MonoTouch.Dialog, so I'm either storing an object
into the Element (which ends up rendering a UITableViewCell), and I
have access to that when the user taps the cell, or I can use an
anonymous method to grab it from the context of when I created it. But
having a knowledge of UITableView stuff when using MT.D is a definite
advantage.



On Tue, Apr 10, 2012 at 16:18, equinoxc <[email protected]> wrote:
> I just started with Monotouch and building a table drill down.  Coming from
> the ASP.Net GridView control, I used the "DataKeyNames" hidden field to
> store each specific data row's database lookup index value.
>
> From the Xcode/Mono table documentation, when a table item is selected, the
> data row number and data cell contents can be retrieved.   What is the
> architecture and coding logic for associating and retrieving a non-visible
> "key value" used to retrieve from a database the next level detail data.
>
> Thx
>
> --
> View this message in context: 
> http://monotouch.2284126.n4.nabble.com/New-User-Table-Grid-drill-down-tp4545929p4545929.html
> Sent from the MonoTouch mailing list archive at Nabble.com.
> _______________________________________________
> MonoTouch mailing list
> [email protected]
> http://lists.ximian.com/mailman/listinfo/monotouch



-- 
Nic Wise
t.  +44 7788 592 806 | @fastchicken | http://www.linkedin.com/in/nicwise
b. http://www.fastchicken.co.nz/

Earnest: Self-employed? Track your business expenses and income.
http://earnestapp.com
Nearest Bus: find when the next bus is coming to your stop. http://goo.gl/Vcz1p
mobileAgent (for FreeAgent): get your accounts in your pocket.
http://goo.gl/IuBU
Trip Wallet: Keep track of your budget on the go: http://goo.gl/ePhKa
London Bike App: Find the nearest Boris Bike, and get riding! http://goo.gl/Icp2
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to