Hi Zsolt,
Based on the
information provided, it appears that you are aiming to center-align a data
grid within a TabBarView. In the implementation of the DataGrid, the parent's
width and height are configured to match the dimensions of the DataGrid. When
no explicit width is defined for the DataGrid, it occupies the entire width
provided by the parent, causing the columns to span from the beginning to the
end of the view.
To achieve
the desired outcome of center-aligning the DataGrid within the available space,
you'll need to explicitly define a specific width for the DataGrid. We have
provided a basic sample for your reference, demonstrating how to implement
this. If you have any further concerns, please feel free to reach out.
Regards,
Abinesh P
Attachment:
SfDataGrid_1c9a4eab.zip