KKKarthikraja Kalaimani Syncfusion Team April 24, 2023 11:11 AM UTC
You can achieve your requirement by setting the MinimumHeightRequest and MinimumWidthRequest to 0 and set the HeightRequest and WidthRequest based on the Total row and columns count in DataGridon datagrid loaded event. For more details, please refer to the following code snippets.
var height = (ViewModel.OrderInfoCollection.Count * dataGrid.RowHeight) + dataGrid.HeaderRowHeight;
var width =
(double)(this.dataGrid.Children as ScrollView).Content.GetType().GetRuntimeProperties().FirstOrDefault(x => x.Name == "ExtentWidth").GetValue((this.dataGrid.Children as ScrollView).Content) as double? ?? 0;