See Also: TableView Members
A Xamarin.Forms.TableView has a Xamarin.Forms.TableRoot as its TableView.Root property. The Xamarin.Forms.TableView.TableRoot is a type of Xamarin.Forms.TableSection.
The following example shows a basic table with two sections.
C# Example
return new ContentPage {
Content = new TableView {
Intent = TableIntent.Form,
Root = new TableRoot ("Table Title") {
new TableSection ("Section 1 Title") {
new TextCell {
Text = "TextCell Text",
Detail = "TextCell Detail"
},
new EntryCell {
Label = "EntryCell:",
Placeholder = "default keyboard",
Keyboard = Keyboard.Default
}
},
new TableSection ("Section 2 Title") {
new EntryCell {
Label = "Another EntryCell:",
Placeholder = "phone keyboard",
Keyboard = Keyboard.Telephone
},
new SwitchCell {
Text = "SwitchCell:"
}
}
}
}
};

The Xamarin.Forms.TableView class has the following XAML properties:
| Property | Value |
|---|---|
| HasUnevenRows | true or false, to indicate whether rows in the table view will specify their own height. |
| Intent | Data, Form, Menu, or Settings. |
| RowHeight | Horizontal or Vertical, to indicate the scroll direction. |