when you create your cell, you can assign the Tag property to some value from your data, then retrieve it when your cell is selected
alternately, you can use the indexPath value to create a index into the array/list/whatever that was used to populate your table, and retrieve the necessary value from there On Sat, Jun 30, 2012 at 12:41 PM, proindigo <[email protected]> wrote: > Hello friends. > > I have scenario which I will try to explain in details. > I have a table ClientAssessments [AssessmentID, ProjectID, ProjectName, > StartDate]. > Now I am fetching all the data by simple select query and want to show it > on > a UITableView column. I want that when someone touches a particular > ProjectName the corresponding AssessmentID be showing as an alert message > [showing an alert is not the issue] . Basically I want to fetch the > corresponding AssessmentID for a selected ProjectName so that it can be > used > for subsequent operations. In ASP.NET gridview we used to have > DataKeyNames > and CommandArgument to associate an ID with an entry. Is there something > similar available in UITableView control? I know this is a basic type of > question but I am just a beginner. > > Hope I have been able to explain my requirement clearly. > > How can I achieve this? What is the underlying theory? What are the things > that I need to know? Some code snippets along the way would be really > helpful for me. > > Any kind of assistance will be massively appreciated! > > Thanks in anticipation. > > -- > View this message in context: > http://monotouch.2284126.n4.nabble.com/UITableView-Scenario-Help-Needed-tp4655680.html > Sent from the MonoTouch mailing list archive at Nabble.com. > _______________________________________________ > MonoTouch mailing list > [email protected] > http://lists.ximian.com/mailman/listinfo/monotouch >
_______________________________________________ MonoTouch mailing list [email protected] http://lists.ximian.com/mailman/listinfo/monotouch
