void BindGrid() { lst = currentobj.GetAll(); if (lst.Count != 0) { dataGridView1.DataSource = null; dataGridView1.DataSource = lst; } }
void BindControl() { lst = typeobj.GetAll(); CMBType.DataSource = lst; CMBType.DisplayMember = "UniteName"; CMBType.ValueMember = "ID"; // Floorslst = Floorsobj.GetAll(); CMBFloors.DataSource = Floorslst; CMBFloors.DisplayMember = "FloorName"; CMBFloors.ValueMember = "ID"; }