Hi jamin,
We have reviewed your query regarding the absence of Rows Data information in the XML file. This is the expected behavior of SfDataGrid, which only serializes layout-related information such as styles and header data, not the actual row or cell data. Typically, row data isn't serialized directly since the purpose of serialization in these instances is to preserve the grid's structure, appearance, and settings, rather than its content.
If you wish to serialize both the grid structure (including styles and headers) and the row data, you will need to handle the serialization of the underlying data source separately.
To assist you further, we have prepared a simple sample demonstrating this approach and have attached it for your review. Kindly evaluate the sample and let us know if this solution meets your requirements.
Please note that we have prepared a sample for an Observable Collection DataSource, so you may need to modify the type according to your specific DataSource.
If we have misunderstood your request or if your needs differ, please provide more details about the issue you are experiencing. This will enable us to better understand the problem and offer an appropriate solution.
Thank you for your understanding and cooperation.
Regards,
Malini Selvarasu
Attachment:
SfDataGrid_Demo_fbb2720b.zip