Transform newButtonItem = ((GameObject)Instantiate((GameObject)Resources.Load("Prefabs/Whatever/MyPrefab"))).transform;
newButtonItem.parent = this.transform;
newButtonItem.name = "InventoryButton_" + newButtonItem.GetInstanceID.ToString(); // make the name unique, just for laughs
// now call your code that re-calcs the grid layout...