/// <summary> /// Hiển thị dữ liệu cho ô tên + maker + model /// </summary> private void Add_Value_sLook_NameEN() { DataTable tempTable = new DataTable(); tempTable = M0004_DAO.GetInfo_M0004(); if (tempTable.Rows.Count > 0) { sLook_NameEN.Properties.DataSource = tempTable; sLook_NameEN.Properties.ValueMember = "NameEN"; sLook_NameEN.Properties.DisplayMember = "NameEN"; } }
//Load dữ liệu private void GetInfo_Gridview() { try { _tempTable = M0004_DAO.GetInfo_M0004(); if (_tempTable.Rows.Count > 0) { gridControl.DataSource = _tempTable; bsiRecordsCount.Caption = "Số records: " + _tempTable.Rows.Count; } } catch (Exception ex) { MessageBox.Show("Lỗi: " + ex.Message, "Lỗi", MessageBoxButtons.OK, MessageBoxIcon.Error); } }