讓客戶滿意是我們工作的目標(biāo),不斷超越客戶的期望值來自于我們對(duì)這個(gè)行業(yè)的熱愛。我們立志把好的技術(shù)通過有效、簡(jiǎn)單的方式提供給客戶,將通過不懈努力成為客戶在信息化領(lǐng)域值得信任、有價(jià)值的長(zhǎng)期合作伙伴,公司提供的服務(wù)項(xiàng)目有:主機(jī)域名、虛擬空間、營銷軟件、網(wǎng)站建設(shè)、大洼網(wǎng)站維護(hù)、網(wǎng)站推廣。> DataTable customerTable = new DataTable();
customerTable.Columns.Add("clsCustomerID", typeof(string));
customerTable.Columns.Add("clsCustomerNM", typeof(string)); //定義列
DataRow row= customerTable.NewRow(); //新加一行
row["clsCustomerID"] = "01.2136";
row["clsCustomerNM"] = "MAXIS1";
customerTable.Rows.Add(row);
DataRow row1 = customerTable.NewRow();
row1["clsCustomerID"] = "01.2255";
row1["clsCustomerNM"] = "VSC2_PRE_W1";
customerTable.Rows.Add(row1); //再加一行
DataRow row22 = customerTable.NewRow();
row22["clsCustomerID"] = "01.2311";
row22["clsCustomerNM"] = "HGC_W1";
customerTable.Rows.Add(row22); //第三行
comboBox1.DataSource = customerTable;
comboBox1.DisplayMember = "clsCustomerNM";
comboBox1.ValueMember = "clsCustomerID"; //將設(shè)置好的datatable 賦值給 comboBox
新聞名稱:c#用代碼定義帶數(shù)據(jù)的datatable-創(chuàng)新互聯(lián)
URL鏈接:
http://weahome.cn/article/csipdg.html