TableView is a view, which is required to display scrolling lists of the data or choices, where there are rows that don't share the same template. Unlike ListView, TableView does not have the concept of an ItemsSource, so the items must be added as children manually.
Before reading this article, please go through the article How To Create And Use XAML Content Page In Xamarin Forms Application For Android And Universal Windows Platform
After reading this article, you will learn how to add Table View in Xamarin Forms Application for an Android and Universal Windows Platform with XAML and Visual C# in cross platform application development.
The important tools are given below, which are required to develop UWP.
- Windows 10 (Recommended).
- Visual Studio 2015 Community Edition (It is a free software available online).
- Using Visual Studio 2015 Installer, enable Xamarin (Cross Platform Mobile development and C#/.NET, while installing/modifying Visual Studio 2015.
Now, we can discuss step by step app development.
Step 1
Open Visual Studio 2015 -> Start -> New Project-> Select Cross-Platform (under Visual C#-> Blank app (Xamarin.Forms Portable)-> Give the suitable name for your app (XamFormTableView) ->OK.

Step 2
Now, create project “XamFormTableView_Droid”.

Choose the Target and minimum platform version for your Universal Windows Project.

Create project “XamFormTableView_UWP”.

Step 3
Afterwards, Visual Studio creates 6 projects and displays Getting Started.XamarinPage. Now, we have to update Xamarin forms Reference for the Portable Project and XamFormTableView_Droid project.
(Please refer How To Create And Use XAML Content Page In Xamarin Forms Application For Android And Universal Windows Platform)
Step 4
Add a XAML page for TableView Demo. Right click XamFormTableView(Portable) project. Select ADD-> NewItem and select ->CrossPlatform-> FormXamlPage-> Give the relevant name.

Step 5
Add TableView, TableRoot, TableSection, TextCell Tag and two Labels in TableViewDemo.xaml.






Join the conversation! Your thoughts help the community grow.