We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Issue with ScrollView

Hi Friends, I was wondering how do you keep a (Row) in a Grid Layout fixed during scrolling? thanks !!!!




3 Replies

VV Vijayakumar Viswanathan Syncfusion Team April 19, 2023 04:35 AM UTC

Hi Ron,

To better assist you with your query, could you kindly provide us with more details regarding your requirements? Specifically, please provide details on how you would like to display the Row. Any additional information you can provide would be greatly appreciated, as it will allow us to provide you with a more accurate and helpful solution. Additionally, if possible, please provide a code snippet or any other relevant details that may help us better understand your request.


Regards,

Vijayakumar V



RR Ron Rex replied to Vijayakumar Viswanathan April 19, 2023 01:24 PM UTC

Thank You So Kindly for helping...


I was wondering how do you keep a (Row) in a Grid Layout fixed during scrolling? In my case I want to keep Row(0) where I have a Header Row fixed (Meaning they cannot resize the window and scroll this particular Row in the Grid, while the user can resize window and Scroll the other Rows. The first row of the Grid will achieve a similar effect to freezing the first row in Excel, fixing it to the top of the table at all times


<ScrollView HorizontalScrollBarVisibility="Always" > <Grid> <Grid.RowDefinitions> <RowDefinition Height="auto"/> <RowDefinition Height="auto"/> <RowDefinition Height="auto"/> <RowDefinition Height="auto"/> <RowDefinition Height="auto"/> <RowDefinition Height="auto"/> <RowDefinition Height="auto"/> <RowDefinition Height="auto"/> </Grid.RowDefinitions> <Grid.ColumnDefinitions> <ColumnDefinition Width="auto"/> <ColumnDefinition Width="auto"/> </Grid.ColumnDefinitions> <!--Row 0--> <controls:PayerHeader Grid.Row="0" />



VV Vijayakumar Viswanathan Syncfusion Team April 26, 2023 03:51 AM UTC

Hi Ron,

The grid layout does not support the required functionality of fixing the first row of the grid, similar to freezing the top row in Excel. Nevertheless, we attempted to utilize two grid layouts, incorporating the second grid into the second row of the initial grid within the scroll layout. This approach provides a similar type of behavior. Kindly review the sample and share your feedback with us.


Attachment: MauiApp1_fca4e3a8.zip

Loader.
Up arrow icon