Hi Team
We are using SFDataGrid for our client UWP Desktop App. We have requirement to resize a control view which has SFDataGrid to show list of user data.
Using ManipulationDelta, we are resizing the control view. At a certain point we are collapse and re showing the control. There we are getting app crash.
With the log we identified it was due to ColumnSizer property. We used Star for this to make it auto stretchable. By removing it, NOT getting app crash. But lost the alignment.
Please suggest us, how to resolve this. We need to make the layout auto stretchable.
Looking forward for your response!
LOG:
[App.xaml.cs] [OnUnhandledException()] [LineNo:280]Unhandled Exception: System.Runtime.InteropServices.COMException: No installed components were detected.
Child collection must not be modified during measure or arrange.
at Windows.UI.Xaml.Controls.Primitives.Popup.put_Child(UIElement value)
at Syncfusion.UI.Xaml.Grid.ColumnSizerBase`1.MeasureTemplate(Size rect, Object record, GridColumnBase column, GridQueryBounds bounds, ContentPresenter ctrl)
at Syncfusion.UI.Xaml.Grid.GridColumnSizer.MeasureTemplate(Size rect, Object record, GridColumn column, GridQueryBounds System.Runtime.InteropServices.COMException (0x800F1000): No installed components were detected.
Child collection must not be modified during measure or arrange.
at Windows.UI.Xaml.Controls.Primitives.Popup.put_Child(UIElement value)
at Syncfusion.UI.Xaml.Grid.ColumnSizerBase`1.MeasureTemplate(Size rect, Object record, GridColumnBase column, GridQueryBounds bounds, ContentPresenter ctrl)
at Syncfusion.UI.Xaml.Grid.GridColumnSizer.MeasureTemplate(Size rect, Object record, GridColumn column, GridQueryBounds bounds)
at Syncfusion.UI.Xaml.Grid.GridColumnSizer.GetCellSize(Size rect, GridColumn column, Object data, GridQueryBounds bounds)
at Syncfusion.UI.Xaml.Grid.GridColumnSizer.GetCellWidth(GridColumn column)
at Syncfusion.UI.Xaml.Grid.GridColumnSizer.CalculateCellWidth(GridColumn column, Boolean setWidth)
at Syncfusion.UI.Xaml.Grid.GridColumnSizer.CalculateAutoFitWidth(GridColumn column, Boolean isAuto)
at Syncfusion.UI.Xaml.Grid.GridColumnSizer.GetColumnSizerWidth(GridColumn column, GridLengthUnitType columnSizer)
at Syncfusion.UI.Xaml.Grid.GridColumnSizer.SetSizerWidth(Double viewPortWidth)
at Syncfusion.UI.Xaml.Grid.GridColumnSizer.Refresh(Double AvailableWidth, Boolean needToInvalidateMeasure)
at Syncfusion.UI.Xaml.Grid.GridColumnSizer.InitialRefresh(Double AvailableWidth, Boolean needToInvalidateMeasure)
at Syncfusion.UI.Xaml.Grid.RowGenerator.ApplyColumnSizeronInitial(Double availableWidth)
at Syncfusion.UI.Xaml.Grid.VisualContainer.MeasureOverride(Size constraint)
at Windows.UI.Xaml.FrameworkElement.MeasureOverride(Size availableSize)
at Syncfusion.UI.Xaml.Grid.SfDataGrid.MeasureOverride(Size availableSize)