Application/C#.net46 dataset 에 DataRow 추가하기 DataRow myRow; myRow = dbrec.Tables[0].NewRow(); // Then add the new row to the collection. myRow[dbrec.Tables[0].Columns[0].ColumnName] = 0; myRow[dbrec.Tables[0].Columns[2].ColumnName] = "전체"; dbrec.Tables[0].Rows.Add(myRow); 2008. 11. 11. combobox DisplayMember 설정하기 using System; using System.Collections; using System.Windows.Forms; public class MyForm : Form{ LanguageSelector combo; public MyForm(){ combo = new LanguageSelector(); combo.Location = new System.Drawing.Point(10,10); this.Controls.Add(combo); combo.SelectedValue = 2; } public static void Main(string[] args){ Application.Run(new MyForm()); } } public class KVPair{ private int myKey; private str.. 2008. 11. 11. 이전 1 ··· 9 10 11 12 다음