...
// remove all children from UIGrid
foreach(Transform child in grid.transform)
{
Destroy(child.gameObject);
}
// populate the grid
foreach(Item item in items)
{
CreateItemCellInGrid(item);
}
// reset positions
grid.Reposition();
draggablePanel.UpdateScrollbars(true);
...