Ejemplo n.º 1
0
        private void LoadGridSubItem(IList <ItemRelation> relations)
        {
            TblItemRelation tbl = new TblItemRelation(_unitOfWork, relations);

            this.gridSubItem.DataSource = tbl;
            this.gridSubItem.ClearSelection();
            this.SetUpGridSubItem();
        }
Ejemplo n.º 2
0
        private void LoadGridSubItem(IList <ItemRelation> relations, int selectedIndex = -1)
        {
            TblItemRelation tbl = new TblItemRelation(_unitOfWork, relations);

            this.gridSubItem.DataSource = tbl;
            if (selectedIndex < 0)
            {
                this.gridSubItem.ClearSelection();
            }
            else
            {
                this.gridSubItem.Rows[selectedIndex].Selected = true;
            }
        }