I'm having an issue here. Unless I set WidthRequest to anything (something I don't want to do because I risk cutting out columns) for the SfDataGrid control I can't use HorizontalOptions="Center" to center the DataGrid control.
What am I doing wrong here?
This is the code I'm using:
Hi Syncfusion team,
I also had this issue and solved it by implementing the suggested workaround.
But in my opinion this should be the default behavior.
If you agree, it would be nice when this can be tracked as a bug so that it will be implemented in the upcoming releases.
Thanks and regards,
Due to the 2023 Volume 2 Main release, there is no weekly NuGet release this week. We have some technical difficulties and use cases that need to be ensured. We will include the changes in our upcoming weekly release, which is scheduled to be rolled out on June 27, 2023. We appreciate your patience and understanding in the meantime.
We are glad to inform you that the fix has been included in our weekly NuGet release for the mentioned issue. Please update the Syncfusion.Maui.DataGrid package to version 22.1.36.
We thank you for your support and appreciate your patience in waiting for this update. Please get in touch with us if you require any further assistance.
it works. :-)
After I've update to version 22.1.36, the DataGrid is now centered in the parent control without implementing the 'OnLoaded' event.
Thanks for the quick fix.
We are glad to know that the reported problem has been resolved at your end. Please let us know if you have any further queries on this. We are happy to help.