protected override void ExecDisp() { for (int i = 0; i < detailControls.Length; i++) { if (CheckDetail(i) == false) { detailControls[i].Focus(); return; } } dpe = GetSearchInfo(); DataTable dt = zibl.D_Move_SelectAll(dpe); GvDetail.DataSource = dt; if (dt.Rows.Count > 0) { GvDetail.SelectionMode = DataGridViewSelectionMode.RowHeaderSelect; GvDetail.CurrentRow.Selected = true; GvDetail.Enabled = true; GvDetail.Focus(); } else { zibl.ShowMessage("E128"); } }
protected override void ExecDisp() { bool ret = BindGrid(); if (ret) { dgvDetail.SelectionMode = DataGridViewSelectionMode.RowHeaderSelect; dgvDetail.CurrentRow.Selected = true; dgvDetail.Enabled = true; dgvDetail.Focus(); dgvDetail.Select(); } else { zbl.ShowMessage("E128"); } }