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
close icon

Showing multiple SfDataGrid on the same page.

Hello,

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.

Thanks,

Jandler

1 Reply

DD Dharmendar Dhanasekar Syncfusion Team June 26, 2017 09:31 AM UTC

Hi Jandler,

Thanks for using Syncfusion product.

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.

Bugzilla Link : https://bugzilla.xamarin.com/show_bug.cgi?id=37438 

We have prepared sample based on your query. You can download the same from below link.

Sample Link : http://www.syncfusion.com/downloads/support/forum/131161/ze/Sample-355661756 

Regards,
Dharmendar 


Loader.
Live Chat Icon For mobile
Up arrow icon