Showing multiple SfDataGrid on the same page.

Thread ID:

Created:

Updated:

Platform:

Replies:

I would like to stack multiple SfDataGrid on the same page. Each of these SfDataGrid can contains several columns so I needed to wrap them in a ScrollView and a StackLayout. By default, the SfDataGrid activates its built in scrolling and each SfDataGrid is crushed into view. Is it possible to simply disable the scrolling in each grid and show the entire content and let the wrapper ScrollView do the scrolling? Each SfDataGrid can contain different column so I cannot use the GroupBy.

We have checked your query “loading multiple grid and disable the scrolling in each grid”. You can disable the horizontal scrolling of SfDataGrid by measuring the SfDataGrid with total column width, by default SfDataGrid will be measured with its parent’s width. Since SfDataGrid is derived from Xamarin.Forms.Grid setting HeightRequest and WidthRequest will not work, hence SfDataGrid should be put inside ContentView to set width and height request . Please refer bugzilla link for more details regarding this.