Search code examples
.nettableviewmauihorizontal-scrolling

Making table content horizontal MAUI


How to make this table content of tableview horizonatal?

enter image description here

How to make this table content of tableview horizonatal?


Solution

  • If the content of the horizontal table is the same, you can use CollectionView to achieve this.

    If the content of the horizontal table is different, you can use Grid or StackLayout to achieve this just as Jason mentioned.

    For example:

       <ScrollView> 
        <HorizontalStackLayout
            Spacing="25"
            Padding="10"
            VerticalOptions="Center">
    
            <TableView  x:Name="table1"/>
    
            <TableView  x:Name="table2"/>
            
            <TableView  x:Name="table3"/>
    
        </HorizontalStackLayout>
    </ScrollView>