private void iniComboBox() { ptypeCmb.DataSource = projectCtrl.getProjectTypeList(); ptypeCmb.DisplayMember = "project_type_name"; ptypeCmb.ValueMember = "id"; this.ptypeCmb.SelectedValue = 1; }
private void iniComboBox() { DataTable pTypeList = projectCtrl.getProjectTypeList(); pTypeList.Rows.Add(new Object[] { 0, "All" }); ptypeCmb.DataSource = pTypeList; ptypeCmb.DisplayMember = "project_type_name"; ptypeCmb.ValueMember = "id"; this.ptypeCmb.SelectedValue = 0; }