private void LoaiHopDong_Load(object sender, EventArgs e) { ResetInterface(true); dtDSLoaiHopDong = oLoaiHopDong.GetList(); if (dtDSLoaiHopDong != null) { PrepareDataSource(); EditDtgInterface(); } //foreach (DataGridViewRow row in dtgv_DSLoaiHD.Rows) //{ // if (row.Cells[3].Value.ToString() == "False") // row.Cells[3].Value = "Bien che"; //} }
/// <summary> /// Refresh Data Source cho dtg sau moi lan thao tac /// </summary> private void RefreshDataSource() { Business.HDQD.LoaiHopDong loaihd = new Business.HDQD.LoaiHopDong(); dtDSLoaiHopDong = loaihd.GetList(); PrepareDataSource(); }