분류 전체보기590 datagridview 체크 컬럼 추가 private void AddOutOfOfficeColumn() { DataGridViewCheckBoxColumn column = new DataGridViewCheckBoxColumn(); { column.HeaderText = ColumnName.OutOfOffice.ToString(); column.Name = ColumnName.OutOfOffice.ToString(); column.AutoSizeMode = DataGridViewAutoSizeColumnMode.DisplayedCells; column.FlatStyle = FlatStyle.Standard; column.ThreeState = true; column.CellTemplate = new DataGridViewCheckBoxCell.. 2008. 11. 26. Upload any type of File through a C# Web Service Introduction This article shall describe an approach that may be used to upload any sort of a file through a web service from a Windows Forms application. The approach demonstrated does not rely on the ASP.NET file uploader control and allows the developer the opportunity to upload files programmatically and without user intervention. Such an approach may be useful for doing something like proce.. 2008. 11. 14. 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 ··· 64 65 66 67 68 69 70 ··· 148 다음