コード例 #1
0
        private void btnView_Click(object sender, EventArgs e)
        {
            frmSearch view = new frmSearch();

            Operation.gViewQuery = "select APurch.BillNo,APurch.[Date],Jobber.[Name] as Jobber from APurch inner join Jobber on Jobber.Code=APurch.Jobber";
            Operation.Bindgrid(Operation.gViewQuery, view.dgvSearch);
            view.OrderByColoumn = "BillNo";
            view.ShowDialog();
            view.dgvSearch.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.None;
            if (Operation.ViewID != null && Operation.ViewID != string.Empty)
            {
                filldata();
                Operation.ViewID  = "";
                btnDelete.Enabled = true;
            }
        }
コード例 #2
0
        private void btnView_Click(object sender, EventArgs e)
        {
            frmSearch view = new frmSearch();

            Operation.gViewQuery = "select * from MfgCycle";
            Operation.Bindgrid(Operation.gViewQuery, view.dgvSearch);
            view.dgvSearch.Columns[0].Visible = false;
            view.OrderByColoumn = "ProgramNo";
            view.ShowDialog();
            view.dgvSearch.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.None;
            if (Operation.ViewID != null && Operation.ViewID != string.Empty)
            {
                //filldata();
                Operation.ViewID  = "";
                btnDelete.Enabled = true;
            }
        }