UIGrid parentGrid = transform.parent.GetComponent<UIGrid>();
int index = parentGrid.GetChildIndex(transform);
for(int i =0 ;i<msgArray.Count;i++){
GameObject cell=NGUITools.AddChild(gameObject,subCellPrefab);
parentGrid.AddChild(cell.transform, index);
}