Hi Vasanth ,
Thank you for using Syncfusion Products .
We analyzed your query.The HScrollBar will provide scroll information value of (VisualContainer’s)horizontal scrollbar and its value will be initialized when SfDataGrid is loaded.You can identify the visibility of horizontal scrollbar by using ComputedHorizontalScrollBarVisibility property of VisualContainer.We have prepared the sample based on your requirement to identify horizontal scrollbar visibility in Loaded event of SfDataGrid . Please find the attached sample .
Please refer the following code snippet for accessing ComputedHorizontalScrollBarVisibility of VisualContainer and you can get VisualContainer by using GetVisualContainer() helper method in SfDataGrid.
void grid_Loaded(object sender, RoutedEventArgs e)
var VisualContainer = this.grid.GetVisualContainer();
Note : For accessing GetVisualContainer() helper method, you need to add the “using Syncfusion.UI.Xaml.Grid.Helpers;” namespace .
Please let us know if this solution helps you .