Saturday, 17 August 2013

How to populate Table View in Xamarin?

How to populate Table View in Xamarin?

I'm trying to port a C# Windows application to Mac but I'm stuck trying to
populate a table view with a bunch of strings. The table view seems to
come with two columns which is good for me but I don't know how to access
the cells, rows, columns or add items. In Windows, I did something like:
foreach(var item in items)
{
somelistbox.Items.Add(item)
}
What could I do in Xamarin? Do I need another view to add to table view?

No comments:

Post a Comment