Thanks Enrico but No ! e.ID when converted to int32 returns exactly same as e.Position it's not the row problem the problem is getting at the second dimension of the array I can get an Java.Lang.Object which contains the array by either of the following pieces of code var selitem = loglist.GetItemAtPosition(pos) or var selitem = loglist.Adapter.GetItem(pos);
the problem is in getting these general variables turned into something useful - they are reported as Java.Util.Arraylist in the debugger As I said I can get this far and in the debugger I can enter into a watch Selitem.Get(1).ToString() and it returns the correct value But if I try to put that code into my code and compile it refuses - says there is no such method Am I missing some casting or declaration - if so what Tx for trying anyway Help anyone else???????????????????????????? John Murray -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of caruso Sent: 05 January 2012 14:48 To: [email protected] Subject: Re: [mono-android] problem with a Javalist (ArrayAdapter) I think you are in the wrong row you can use int pos = e.Position; instead of int pos = Convert.ToInt32(e.Id); This will select you the current Position of the row from 0 to x which item is selected. Id i don't know what value there is because i never used it. ----- greetz Enrico student from germany -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/problem-with-a-Javalist-ArrayA dapter-tp5122819p5122844.html Sent from the Mono for Android mailing list archive at Nabble.com. _______________________________________________ Monodroid mailing list [email protected] UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid _______________________________________________ Monodroid mailing list [email protected] UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
