private void gridHeader_Enter(object sender, EventArgs e) { selectMode = enumSelectMode.Header; cmdEdit.Enabled = true; cmdPrint.Enabled = true; gridHeader_SelectionChanged(sender, e); }
private void frmVoucherGiroTitipanBrowse_Load(object sender, EventArgs e) { //tbTanggal.FromDate = new DateTime(DateTime.Today.Year, DateTime.Today.Month, 1); //tbTanggal.ToDate = new DateTime(DateTime.Today.Year, DateTime.Today.Month, DateTime.DaysInMonth(DateTime.Today.Year, DateTime.Today.Month)); tbTanggal.FromDate = DateTime.Today; tbTanggal.ToDate = DateTime.Today; HeaderRefresh(); //DetailRefresh(); gridHeader.Focus(); selectMode = enumSelectMode.Header; }
private void gridDetail_Enter(object sender, EventArgs e) { selectMode = enumSelectMode.Detail; cmdEdit.Enabled = false; cmdPrint.Enabled = false; }