Exemplo n.º 1
0
 private void BindDataFaculty(String t = "", String w = "", String o = "")
 {
     cmbFaculty.DataSource    = faculty.Faculty_GetByTop(t, w, o);
     cmbFaculty.DisplayMember = "facultyName";
     cmbFaculty.ValueMember   = "id";
     cmbFaculty.SelectedIndex = 0;
 }
Exemplo n.º 2
0
 private void BindDataFaculty(String t = "", String w = "", String o = "")
 {
     cmbFaculty.DataSource    = faculty.Faculty_GetByTop(t, w, o);
     cmbFaculty.DisplayMember = "facultyName";
     cmbFaculty.ValueMember   = "id";
     cmbFaculty.SelectedValue = Common.subject_facultyID;
 }
 private void BindData(String t = "", String w = "", String o = "")
 {
     dgvFaculty.DataSource = obj.Faculty_GetByTop(t, w, o);
     dgvFaculty.Columns[0].HeaderText = "Mã khoa";
     dgvFaculty.Columns[1].HeaderText = "Tên khoa";
     dgvFaculty.Columns[1].AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
 }
Exemplo n.º 4
0
 private void BindDataFaculty(String t = "", String w = "", String o = "")
 {
     dgvFaculty.DataSource = faculty.Faculty_GetByTop(t, w, o);
 }