Be careful with this - while datasets support arbitrary data types, serialization does not, so you might think everything is working in the designer, then open the window in the client and have no data.
I would use a dataset in it’s “intended” form, as @lrose suggested.
I thought about using the dataset but for some reason I didn’t choose it. I changed what was causing this and used the dataset. seems to be working for now