Esempio n. 1
0
        private void pmSearchData()
        {
            using (cfrmSearchData dlg = new cfrmSearchData())
            {
                dlg.ShowDialog();
                if (dlg.DialogResult == DialogResult.OK &&
                    dlg.Code != null)
                {
                    this.pmSetSortKey(dlg.SearchKey, true);

                    int intSeekRow = this.gridView1.LocateByValue(0, this.gridView1.Columns["CCODE"], dlg.Code);
                    if (intSeekRow > -1 && intSeekRow <= this.gridView1.RowCount)
                    {
                        this.gridView1.FocusedRowHandle = intSeekRow;
                    }
                }
            }
        }
Esempio n. 2
0
        private void pmSearchData()
        {
            bool bllIsPopUp = (this.mFormActiveMode == FormActiveMode.PopUp || this.mFormActiveMode == FormActiveMode.Report);

            using (cfrmSearchData dlg = new cfrmSearchData(bllIsPopUp))
            {
                dlg.ShowDialog();
                if (dlg.DialogResult == DialogResult.OK &&
                    dlg.Code != null)
                {
                    this.pmSetSortKey(dlg.SearchKey, true);

                    int intSeekRow = this.gridView1.LocateByValue(0, this.gridView1.Columns["CCODE"], dlg.Code);
                    if (intSeekRow > -1 && intSeekRow <= this.gridView1.RowCount)
                    {
                        this.gridView1.FocusedRowHandle = intSeekRow;
                    }
                }
            }
        }