private void btnaddTopo_Click(object sender, EventArgs e)
        {
            if (dgvData.RowCount == 0)
            {
                MessageBox.Show("No data to ordered");
                return;
            }
            frmAddToPO frm = new frmAddToPO();

            frm.StartPosition    = FormStartPosition.CenterParent;
            frm.IsAuto           = true;
            frm.inventoryrecords = dgvData.DataSource as List <InventoryRecord>;
            frm.ListOfLocalSKU   = listoflocalSKU;
            frm.ShowDialog();
            cbSupplier_SelectedIndexChanged(cbSupplier, new EventArgs());
        }
        private void btnaddTopo_Click(object sender, EventArgs e)
        {
            if (dgvData.RowCount == 0)
            {
                MessageBox.Show("No data to ordered");
                return;
            }
            frmAddToPO frm = new frmAddToPO();

            frm.StartPosition = FormStartPosition.CenterParent;
            frm.IsAuto        = false;
            frm.ShowDialog();
            string str = "";

            dgvData.AutoGenerateColumns = false;
            dgvData.DataSource          = new List <InventoryRecord>();
            PublicInventoryRecord       = Inventory.GetAllNotOrderedRecord(out str);
            dgvData.DataSource          = PublicInventoryRecord;
        }