Horizontal Scroll

Hi!

I haven't been able to show the horizontal scroll bar, and I also need to put it always visible, not only while touching the screen.


Here's what I'm trying to do:




PD: The first two columns have to be frozen, i already made it with FrozenRowsCount="2". but it is not scrolling :(


Tnks!!

1 Reply

SS Sivaraman Sivagurunathan Syncfusion Team January 17, 2018 06:06 PM UTC

Hi Luis, 
 
We have checked your query. In SfDataGrid, we have used default Xamarin.Forms.ScrollBar. And we cannot enable the visibility of the Scrollbar always. We have reported this in to Xamarin Team and you can refer the below Bugzilla report for more details about this.      
  
  
Instead of this, you can achieve your requirement using Slider. The below code example illustrate how to scroll the SfDataGrid using Slider. 
 
 
Slider slider = new Slider(); 
slider.ValueChanged += Slider_ValueChanged; 
slider.Value = 1; 
slider.Maximum = 10; 
slider.Minimum = 1; 
 
private void Slider_ValueChanged(object sender, ValueChangedEventArgs e) 
{ 
    dataGrid.ScrollToColumnIndex((int)(e.NewValue)); 
} 
  
We have prepared the sample and attached the sample for your reference you can download the same from the below link. 
 
 
Regards, 
Sivaraman 
 


Loader.
Up arrow icon