More Effiecent Way of Using Uniform Grid for Inventory?

Hey ! Can you arrange the order of items in Unifrom grid in real time ? I mean I want to automate the sequence of items in the grid. I have few functions like Get child at Index, etc. But when I get the child, they are technically Panel Slot references. If I cast these items to my personalised widget I made (for ex: I made a clue card widget to be added into Uniform Grid) I get cast failed notification in Compiler results tab. Any solution how you get the access to child in runtime so that you get a grip on their colum and row attributes ?