string strSql = "select AMID as [编号],AMLX as [类型] from SYS_AlarmType order by AMID";
DataTable DT = TH.TracerEnerView.DBUtility.DbHelperSQL.Query(strSql).Tables[0];
comboBoxType.DataSource = DT;
comboBoxType.DisplayMember = "类型";
comboBoxType.ValueMember = "编号";
转载于:https://www.cnblogs.com/vmyspace/archive/2012/01/30/2332189.html