-
reportviewer ‘System.CannotUnloadAppDomainException’ 에러 ㅠㅠ
ReportViewer 로 작업을 하고나서 종료 하려고 하는데 처리되지 않은 ‘System.CannotUnloadAppDomainException’ 형식의 예외가 mscorlib.dll에서 발생했습니다. 추가 정보: appdomain을 언로드하는 동안 오류가 발생했습니다. (예외가 발생한 HRESULT: 0x80131015)위와 같은 에러 메시지가 나오면 당혹스럽다. 이럴땐 코드 한줄만 추가해 주면 된다.예를 들면 private void frmMyForm_FormClosing(object sender, FormClosingEventArgs e){ reportViewer1.LocalReport.ReleaseSandboxAppDomain(); }위와 같이 로칼…
-
DataGridView 에서 입력 받으면서 검사 하고 싶을때
DataGridView에는 해당 셀의 편집이 시작되면 편집용 컨트롤을 보여줌과 동시에 EditingControlShowing 이벤트를 발생 시킵니다. 해당 이벤트를 연결하여 TextBox뿐만 아니라 편집모드에서 열리는 모든 컨트롤에 직접 접근 할 수 있습니다. ex) //이벤트 연결 this.dataGridView1.EditingControlShowing += new DataGridViewEditingControlShowingEventHandler(dataGridView1_EditingControlShowing); void dataGridView1_EditingControlShowing(object sender, DataGridViewEditingControlShowingEventArgs e){ TextBox box = e.Control as TextBox; if(box != null) box.TextChanged…
-
TextBox 숫자 입력만 받도록 하기
// 정수형 값만 입력받도록 하기 private void textNum1_KeyPress(object sender, KeyPressEventArgs e) { if (!(char.IsDigit(e.KeyChar) || e.KeyChar == Convert.ToChar(Keys.Back) || e.KeyChar == ‘-‘)) { e.Handled = true; } } // 실수형 포함해서 입력받도록 하기 private void textNum1_KeyPress(object sender, KeyPressEventArgs e) { if (!(char.IsDigit(e.KeyChar) || e.KeyChar == Convert.ToChar(Keys.Back) || e.KeyChar == ‘-‘ || e.KeyChar == ‘.’)) {…
-
끔찍하게 느린 DataGridView의 성능 높이기
-
DataGridView 에서 엑셀처럼 자동 채우기, 기능 구현,
-
초간단 DataGridView 사용법 (추가중…)
행에 바인딩된 개체에 액세스(BindingList 사용권장) BindList은 목록 데이터 원본이 편집을 지원하도록 하기 위해 데이터 바인딩 인프라에 필요한 최소 인터페이스구현되어져 있따! http://msdn.microsoft.com/ko-kr/library/ms132679.aspx void invoiceButton_Click(object sender, EventArgs e) { foreach (DataGridViewRow row in this.dataGridView1.SelectedRows) { Customer cust = row.DataBoundItem as Customer; if (cust != null) { cust.SendInvoice(); } } } 표시를 위해 셀 내용의 서식을 지정해야…
-
Winform 새창 띄우기
-
C# ㅇㅔ서 DataGridView 사용하기
예전에 이자료를 어디에서 봐서 스킵(?) 해 놓는다는게 깜박했더니다시 찾을려니 2시간 넘게 검색만 하고 아까운 시간만 ㄷㄷㄷ————————————————– Writter by Youngil Kim, C#.NET Developer 이번에는 WinForm에서 제공하는 DataGridView컨트롤을 사용해보는 컬럼을 마련해 보았습니다. 일단 간단하게 VS2005에서 Windows 응용프로그램 프로젝트를 하나 만들고 윈폼화면에 DataGridView컨트롤 배치시키고 마음에 드는 사이즈로 만드세요! ^^ 여기서 사용하는 데이터베이스는 SQL Server 2005에서 새롭게 제공하는…
-
DataGridView 데이터 삽입하기
-
VS2008 sln 파일을 VS2005로 변환(다운그레이드)하는 방법