검색결과 리스트
전체에 해당되는 글 1012건
- 2012.06.14 [Eclipse] jQuery jquery-1.X.X.min.js 포함시 에러 필터링 하기
- 2012.06.14 [Chrome] 크롬 디버깅
- 2012.06.14 [Jeus 5.0] Eclipse 에서 Jeus 디버깅이 안될때...
- 2012.06.14 [Eclipse] Console 한글깨짐
- 2012.06.13 [Eclipse] 글꼴 및 Color 변경
- 2012.06.13 [Eclipse] 기본브라우저 설정
- 2012.06.13 [Eclipse] Heap 영역 조절
- 2012.06.13 [Eclipse] 자바 개발 환경 구축 JAVA SDK + Eclipse
- 2012.06.13 [Subversion] Windows Service 등록
- 2012.06.13 [MSSQL] Windows 2008 방화벽 오픈
- 2012.06.12 [SVN] Windows Subversion 설치
- 2012.06.08 [Visual Basic] Visaul Basic 개요
- 2012.06.07 [Visual Basic] CreateObject Method (RDS)
- 2012.06.07 [Eclipse] Plugin 개발하기
- 2012.05.23 [MSSQL] 로그 용량 줄이는 쿼리문
- 2012.05.22 [.Net] Zlib Wrapper
- 2012.05.16 [Visual Studio] Add-In 만들기
- 2012.05.03 [SQLite] ADO.NET 2.0 Provider for SQLite
- 2012.04.26 [Ghost] 고스트를 이용해서 백업하자
- 2012.04.26 SWISSFLEX 안경테
- 2012.04.24 [MSSQL] 유저 테이블 스키마 정보 얻어오기
- 2012.04.24 [Mac] Mac OS X Lion의 TRIM 활성화 하기
- 2012.04.20 [MSSQL] 언어 타입 변경하기
- 2012.04.17 [.Net] Inter-Process Communication
- 2012.04.16 [.Net] IPC
- 2012.04.14 [C#] Visual C# 메소드를 비동기로 호출하는 방법
- 2012.04.13 [XtraGrid] Online Document
- 2012.04.11 [XtraGrid] Copy & Paste 구현
- 2012.04.11 [Visual Studio 2005] 매크로 환경변수
- 2012.04.11 [.Net] 관리코드에서 메모리 누수 및 방지
글
제이쿼리 압축 파일을 Eclipse에 포함 시키면 매번 오류가 난다고 표시된다.
그렇지만 실제 해보면 잘 되는데 이거 엄청 신경쓰인다.
그렇다고 그 부분을 고치기도 애매하다.
이럴때 검사 제외 패턴을 사용한다.
프로젝트 -> Properties -> JavaScript -> Include Path -> Source -> Excluded -> Edit -> Exclusion Patterns -> Add
'**/jquery*.js' 등록
참고 : http://imwill.com/eclipse-java-ee-jquery-validation-error-workaround/#.T9l_mrXqRoI
'IDE/Tool > Eclipse' 카테고리의 다른 글
[Eclipse] SVN(Subversion 설치) (0) | 2012.06.19 |
---|---|
[Eclipse] Automatically Close 해제 (0) | 2012.06.15 |
[Eclipse] Console 한글깨짐 (0) | 2012.06.14 |
[Eclipse] 글꼴 및 Color 변경 (0) | 2012.06.13 |
[Eclipse] 기본브라우저 설정 (0) | 2012.06.13 |
트랙백
댓글
글
글
Jeus 연동해서 작업하면서 별 삽질을 다 하네요.
1. JEUS_HOME 위치로 이동
2. config -> [노드명] 이동
3. JEUSMAIN.xml 수정
'WAS > Jeus' 카테고리의 다른 글
[Jeus] Jeus5 스펙 (0) | 2013.04.02 |
---|---|
[Jeus] encoding 설정 (0) | 2012.07.07 |
[Jeus] Tmax jeus (0) | 2012.06.20 |
[Jeus] 환경셋팅 (0) | 2012.06.14 |
트랙백
댓글
글
새로운 프로젝트에서 밑바탕부터 시작하니 이것 저것 걸리는게 많습니다.
각설하고 Jeus + Eclipse 환경에서 개발합니다.
개발전에 모든 Encoding을 UTF-8로 교채했습니다.
테스트겸 System.out.println으로 콘솔창에 찍어봤는데 한글이 깨집니다. ㅠㅠ
수정방법은
Run -> Run Configurations ... -> [JEUS Server] -> Common에서 Encoding을 'EUC-KR'로 변경합니다.
* 추가 : 2012-07-28
Jeus의 WebApp설정을 UTF-8로 맞춰주시는 방법도 있습니다.
'IDE/Tool > Eclipse' 카테고리의 다른 글
[Eclipse] Automatically Close 해제 (0) | 2012.06.15 |
---|---|
[Eclipse] jQuery jquery-1.X.X.min.js 포함시 에러 필터링 하기 (0) | 2012.06.14 |
[Eclipse] 글꼴 및 Color 변경 (0) | 2012.06.13 |
[Eclipse] 기본브라우저 설정 (0) | 2012.06.13 |
[Eclipse] Heap 영역 조절 (0) | 2012.06.13 |
트랙백
댓글
글
Window -> Preferences -> General -> Editors -> TextEditor -> Color and fonts 클릭
'IDE/Tool > Eclipse' 카테고리의 다른 글
[Eclipse] jQuery jquery-1.X.X.min.js 포함시 에러 필터링 하기 (0) | 2012.06.14 |
---|---|
[Eclipse] Console 한글깨짐 (0) | 2012.06.14 |
[Eclipse] 기본브라우저 설정 (0) | 2012.06.13 |
[Eclipse] Heap 영역 조절 (0) | 2012.06.13 |
[Eclipse] 자바 개발 환경 구축 JAVA SDK + Eclipse (0) | 2012.06.13 |
트랙백
댓글
글
'IDE/Tool > Eclipse' 카테고리의 다른 글
[Eclipse] Console 한글깨짐 (0) | 2012.06.14 |
---|---|
[Eclipse] 글꼴 및 Color 변경 (0) | 2012.06.13 |
[Eclipse] Heap 영역 조절 (0) | 2012.06.13 |
[Eclipse] 자바 개발 환경 구축 JAVA SDK + Eclipse (0) | 2012.06.13 |
[Eclipse] Plugin 개발하기 (0) | 2012.06.07 |
트랙백
댓글
글
메모가 여유가 있다면 아래와 같이 설정한다.
-Xml1024m
-Xmx1024m
로 설정한다.
Window -> Preferences -> General -> Show heap status 를 체크해준다.
이클립스에 표시된다.
'IDE/Tool > Eclipse' 카테고리의 다른 글
[Eclipse] 글꼴 및 Color 변경 (0) | 2012.06.13 |
---|---|
[Eclipse] 기본브라우저 설정 (0) | 2012.06.13 |
[Eclipse] 자바 개발 환경 구축 JAVA SDK + Eclipse (0) | 2012.06.13 |
[Eclipse] Plugin 개발하기 (0) | 2012.06.07 |
[Eclipse] 25 Best Free Eclipse Plug-ins for Java (0) | 2012.01.09 |
트랙백
댓글
글
'IDE/Tool > Eclipse' 카테고리의 다른 글
[Eclipse] 기본브라우저 설정 (0) | 2012.06.13 |
---|---|
[Eclipse] Heap 영역 조절 (0) | 2012.06.13 |
[Eclipse] Plugin 개발하기 (0) | 2012.06.07 |
[Eclipse] 25 Best Free Eclipse Plug-ins for Java (0) | 2012.01.09 |
[Eclipse] Tasks를 사용하자. (0) | 2011.11.11 |
트랙백
댓글
글
- 서비스 등록
sc \\컴퓨터이름 create svnserve binpath= "C:\Program Files (x86)\Subversion\bin\svnserve.exe --service -r D:\Repos" DisplayName= "Subversion svnserve"
- 서비스 등록 해제
sc \\컴퓨터이름 delete svnserve
'VCS > SVN' 카테고리의 다른 글
[SVN] Windows Subversion 설치 (0) | 2012.06.12 |
---|
트랙백
댓글
글
'DB / NoSQL > MSSQL' 카테고리의 다른 글
[MSSQL] SQL 2008 Declare 는 선언정 정의를 동시에 할수 있다. (1) | 2012.08.03 |
---|---|
[MSSQL] 로그용량 줄이는 쿼리 (0) | 2012.07.24 |
[MSSQL] 로그 용량 줄이는 쿼리문 (0) | 2012.05.23 |
[MSSQL] 유저 테이블 스키마 정보 얻어오기 (0) | 2012.04.24 |
[MSSQL] 언어 타입 변경하기 (0) | 2012.04.20 |
트랙백
댓글
글
글
글
글
링크 : http://www.ibm.com/developerworks/kr/library/os-eclipse-plugindev1/index.html
링크 : http://www.ibm.com/developerworks/kr/library/os-ecplug/
[PDF] 출처 : http://pragmatic.springnote.com/pages/5239765
'IDE/Tool > Eclipse' 카테고리의 다른 글
[Eclipse] Heap 영역 조절 (0) | 2012.06.13 |
---|---|
[Eclipse] 자바 개발 환경 구축 JAVA SDK + Eclipse (0) | 2012.06.13 |
[Eclipse] 25 Best Free Eclipse Plug-ins for Java (0) | 2012.01.09 |
[Eclipse] Tasks를 사용하자. (0) | 2011.11.11 |
[Eclipse] 이클립스 속도향상 설정 (0) | 2011.10.25 |
트랙백
댓글
글
-- Truncate the log by changing the database recovery model to SIMPLE. ALTER DATABASE [SBO-COMMON] SET RECOVERY SIMPLE; GO -- Shrink the truncated log file to 1 MB. DBCC SHRINKFILE ([SBO-COMMON_log], 1); GO -- Reset the database recovery model. ALTER DATABASE [SBO-COMMON] SET RECOVERY FULL; GO
'DB / NoSQL > MSSQL' 카테고리의 다른 글
[MSSQL] 로그용량 줄이는 쿼리 (0) | 2012.07.24 |
---|---|
[MSSQL] Windows 2008 방화벽 오픈 (0) | 2012.06.13 |
[MSSQL] 유저 테이블 스키마 정보 얻어오기 (0) | 2012.04.24 |
[MSSQL] 언어 타입 변경하기 (0) | 2012.04.20 |
[MSSQL] SQL Server Management Studio 단축키 (0) | 2012.04.04 |
트랙백
댓글
글
'.Net > .Net' 카테고리의 다른 글
[.Net] pinvoke.net (0) | 2013.01.07 |
---|---|
[.Net] Windows 서비스 응용 프로그램 (0) | 2012.12.07 |
[.Net] Inter-Process Communication (0) | 2012.04.17 |
[.Net] IPC (0) | 2012.04.16 |
[.Net] 관리코드에서 메모리 누수 및 방지 (0) | 2012.04.11 |
트랙백
댓글
글
링크 : http://www.mztools.com/articles/2005/mz2005003.aspx
링크 : http://www.mztools.com/articles/2004/MZ2004003.aspx
링크 : http://www.codeproject.com/Articles/12244/Adding-Menu-Items-to-context-menus-inside-the-Visu
링크 : http://msdn.microsoft.com/ko-kr/library/microsoft.visualstudio.commandbars.aspx
링크 : http://msdn.microsoft.com/ko-kr/library/xc52cke4(VS.100).aspx
* Register
링크 : http://msdn.microsoft.com/en-us/library/19dax6cz(v=VS.90).aspx
링크 : http://blog.naver.com/kpetera?Redirect=Log&logNo=70134488358
'IDE/Tool > Visual Studio' 카테고리의 다른 글
[Visual Studio 2010] 정규표현식 (0) | 2012.12.12 |
---|---|
[Visual Basic 6.0] 마우스 휠이 동작하지 않을때 (0) | 2012.08.02 |
[Visual Studio 2005] 매크로 환경변수 (0) | 2012.04.11 |
[Visual Studio 2005] Visual Studio 2005 에서 ildasm.exe 위치 (0) | 2012.03.10 |
[Visual Studio] 마법사 만들기 (0) | 2012.03.08 |
트랙백
댓글
글
'DB / NoSQL > SQLite' 카테고리의 다른 글
SQLite Expert (0) | 2011.02.15 |
---|---|
SQLite 3.7.2 Windows Mobile용 dll (0) | 2010.09.25 |
트랙백
댓글
글
링크 : http://blog.naver.com/dalsapcho?Redirect=Log&logNo=20142111172
링크 : http://blog.naver.com/dldnjswns910?Redirect=Log&logNo=130130337350
위 프로그램들은 x86용 입니다. x64에서는 구동되지 않습니다.
'일반' 카테고리의 다른 글
[컬럼] 객체지향을 넘어서 관점지향으로 AOP (0) | 2012.07.12 |
---|---|
[Windows7] 내 자격 증명 기억을 해도 네트워크 드라이브 인증을 요구할때 (0) | 2012.06.29 |
[정규표현식] 요약 (0) | 2012.02.15 |
Library와 Framework의 차이점 (1) | 2011.10.21 |
Context Switching (문맥전환) (0) | 2011.09.14 |
트랙백
댓글
글
지금 사용하고 있는 안경은 태그호이어 제품입니다.
가볍고 편할것 같다는 생각에 구입했는데 의외로 편하지는 않았던것 같습니다.
그리고 한 2년 사용하다 보니 질리기도 해서
안경테를 살펴보는 중에 스위스플렉스 제품이 눈에 띄었는데 제품 소제는 딱 마음에 드네요.
직접 안경원에 가서 써보고 구입해야 할 것 같습니다.
우선 이름이라도 기억해야지 SWISSFLEX!!
링크 : http://www.swissflex-eyewear.com/sites/index.html
'뚱2's 이야기' 카테고리의 다른 글
[레코딩] DVD 원본 파일을 아이패드 동영상으로 변환하기 (0) | 2012.09.22 |
---|---|
[책 스캔 기계] ScanSnap S1500 (0) | 2012.07.01 |
[링크] "만5세아 유치원비 이렇게 지원받으세요" (0) | 2012.02.07 |
무료 해외 토렌트 이용사이트 (0) | 2011.10.29 |
[아이폰] iOS5 업그레이드 이후 배터리 소모 줄이는 방법 (0) | 2011.10.23 |
트랙백
댓글
글
테이블 스키마 정보를 읽어서 VO 객체를 자동으로 만들려고 하는데 MSSQL 테이블 스키마 정보를 읽어오는 쿼리가 필요했다.
회사 과장님이 만들어 주신걸 잘 활용 감사합니다. ㅎㅎ
SELECT C.TABLE_NAME AS [Table] , '' Entity , C.COLUMN_NAME AS [Column] , DATA_TYPE AS [Datatype] , '' Attribute , ISNULL (K.PK, '') AS PK , ISNULL (X.[Identity], '') AS [Identity] , C.IS_NULLABLE AS NULLABLE , ISNULL (K.FK, '') AS FK , ORDINAL_POSITION AS COLIDX FROM (SELECT TABLE_NAME , COLUMN_NAME , CASE WHEN IS_NULLABLE = 'YES' THEN '' ELSE 'NOT' END AS IS_NULLABLE , DATA_TYPE , CASE WHEN DATA_TYPE IN ('VARCHAR', 'NVARCHAR', 'char', 'nchar') THEN DATA_TYPE + '(' + CONVERT (VARCHAR (10), ISNULL (CHARACTER_MAXIMUM_LENGTH, NUMERIC_PRECISION)) + ')' WHEN DATA_TYPE IN ('DECIMAL') THEN DATA_TYPE + '(' + CONVERT (VARCHAR (10), NUMERIC_PRECISION) + ', ' + CONVERT (VARCHAR (10), NUMERIC_SCALE) + ')' ELSE '' END AS DATA_SIZE , ORDINAL_POSITION , COLUMN_DEFAULT FROM INFORMATION_SCHEMA.COLUMNS) AS C LEFT JOIN (SELECT COLUMN_NAME , MAX (PK) AS PK , MAX (FK) AS FK , MAX (INX) AS INX , TABLE_NAME FROM (SELECT C.COLUMN_NAME , K.TABLE_NAME , CASE WHEN K.CONSTRAINT_TYPE = 'PRIMARY KEY' THEN 'Yes' END AS PK , CASE WHEN K.CONSTRAINT_TYPE = 'FOREIGN KEY' THEN 'Yes' END AS FK , CASE WHEN K.CONSTRAINT_TYPE = 'INDEX' THEN 'Yes' END AS INX FROM INFORMATION_SCHEMA.TABLE_CONSTRAINTS AS K INNER JOIN INFORMATION_SCHEMA.CONSTRAINT_COLUMN_USAGE AS C ON K.CONSTRAINT_NAME = C.CONSTRAINT_NAME) AS K GROUP BY TABLE_NAME , COLUMN_NAME) AS K ON C.COLUMN_NAME = K.COLUMN_NAME AND C.TABLE_NAME = K.TABLE_NAME LEFT JOIN (SELECT SO.name AS TableName , IC.NAME AS ColumnName , 'Yes' AS [Identity] FROM sys.identity_columns IC INNER JOIN sysObjects SO ON SO.id = IC.[object_id]) X ON C.TABLE_NAME = X.TableName AND C.COLUMN_NAME = X.ColumnName ORDER BY C.TABLE_NAME , C.ORDINAL_POSITION
'DB / NoSQL > MSSQL' 카테고리의 다른 글
[MSSQL] Windows 2008 방화벽 오픈 (0) | 2012.06.13 |
---|---|
[MSSQL] 로그 용량 줄이는 쿼리문 (0) | 2012.05.23 |
[MSSQL] 언어 타입 변경하기 (0) | 2012.04.20 |
[MSSQL] SQL Server Management Studio 단축키 (0) | 2012.04.04 |
[MSSQL] CONVERT TYPE 0~200 (0) | 2011.09.28 |
트랙백
댓글
글
'OS > Mac' 카테고리의 다른 글
[Mac] Finder 단축키를 생성하자 (Command+E) (0) | 2012.12.29 |
---|---|
[Mac] 파티션 합치기 (0) | 2012.10.14 |
[Mac] 듀얼부팅일때 우선순위 정하기 (0) | 2012.02.28 |
[Mac] 정보가져오기 단축키 (0) | 2012.02.05 |
[Mac] 기본 프로그램 변경하기 (0) | 2011.12.11 |
트랙백
댓글
글
-- 유니코드로 언어변경 ALTER DATABASE [KISS] COLLATE Korean_Wansung_Unicode_CI_AS
'DB / NoSQL > MSSQL' 카테고리의 다른 글
[MSSQL] 로그 용량 줄이는 쿼리문 (0) | 2012.05.23 |
---|---|
[MSSQL] 유저 테이블 스키마 정보 얻어오기 (0) | 2012.04.24 |
[MSSQL] SQL Server Management Studio 단축키 (0) | 2012.04.04 |
[MSSQL] CONVERT TYPE 0~200 (0) | 2011.09.28 |
[MSSQL] 문자열 자르기 (0) | 2011.09.15 |
트랙백
댓글
글
1. Ipc클래스 이용
링크 : http://anoriginalidea.wordpress.com/2007/08/09/simple-inter-process-communication-in-vbnet/
2. 표준 입출력 이용
'.Net > .Net' 카테고리의 다른 글
[.Net] Windows 서비스 응용 프로그램 (0) | 2012.12.07 |
---|---|
[.Net] Zlib Wrapper (0) | 2012.05.22 |
[.Net] IPC (0) | 2012.04.16 |
[.Net] 관리코드에서 메모리 누수 및 방지 (0) | 2012.04.11 |
[.Net] 가비지 수집 모니터링 (0) | 2012.04.11 |
트랙백
댓글
글
'.Net > .Net' 카테고리의 다른 글
[.Net] Zlib Wrapper (0) | 2012.05.22 |
---|---|
[.Net] Inter-Process Communication (0) | 2012.04.17 |
[.Net] 관리코드에서 메모리 누수 및 방지 (0) | 2012.04.11 |
[.Net] 가비지 수집 모니터링 (0) | 2012.04.11 |
[.Net] CLR Inside Out: 메모리 문제 조사 (0) | 2012.04.10 |
트랙백
댓글
글
'.Net > C#' 카테고리의 다른 글
[C#] StackTrace (0) | 2013.01.08 |
---|---|
[C#] DllImportAttribut 멤버 (0) | 2013.01.04 |
[C#] Assembly Version Loading (0) | 2012.04.06 |
[C#] VS 2008 서식 자동 해제 (0) | 2012.04.06 |
[C#] log4net (0) | 2012.04.03 |
트랙백
댓글
글
'.Net > XtraGrid' 카테고리의 다른 글
[XtraGrid] XtraGrid Option (0) | 2013.01.24 |
---|---|
[XtraGrid] Copy & Paste 구현 (0) | 2012.04.11 |
[XtraGrid] How to make my grid columns read-only (0) | 2012.04.08 |
[XtraGrid] Checkbox 구현하기 (1) | 2012.04.06 |
[XtraGrid] Fixed Columns (0) | 2012.04.05 |
트랙백
댓글
글
링크 : http://www.devexpress.com/Support/Center/p/A1266.aspx
Copy 구현 : http://www.devexpress.com/Support/Center/p/A332.aspx
셀렉션 옵션 : http://documentation.devexpress.com/#WindowsForms/CustomDocument711
using System; using System.Drawing; using System.Collections; using System.Collections.Generic; using System.Windows.Forms; using System.Data; using System.Text; using System.Runtime.Serialization; using System.Runtime.Serialization.Formatters; using System.Runtime.Serialization.Formatters.Binary; using DevExpress.XtraGrid; using DevExpress.XtraGrid.Columns; using DevExpress.XtraEditors.Controls; using DevExpress.XtraEditors.Repository; using DevExpress.XtraGrid.Views.Base; using DevExpress.XtraGrid.Views.Grid; using DevExpress.XtraGrid.Views.Grid.ViewInfo; using DevExpress.Utils.Drawing; namespace KIS.DevExpressHelper { public class GridLClipboardHelper { private const string CellDelimiter = "\t"; private const string LineDelimiter = "\r\n"; protected GridView _view; /// 생성자 public GridLClipboardHelper(GridView view) { this.View = view; } public GridView View { get { return _view; } set { if ( _view != value ) { Detach(); Attach(value); } } } protected virtual void Attach(GridView view) { if ( view == null ) return; this._view = view; if ( view.IsMultiSelect == false ) { view.OptionsSelection.MultiSelect = true; view.OptionsSelection.MultiSelectMode = GridMultiSelectMode.RowSelect; } this.View.KeyDown += new KeyEventHandler(View_KeyDown); } private bool CompareGrid(GridView srcView, GridView tgtView) { int srcCnt = srcView.Columns.Count; int tgtCnt = tgtView.Columns.Count; if ( srcView == null || tgtView == null ) { return false; } if ( srcCnt != tgtCnt ) { return false; } for ( int i = 0; i < srcCnt; i++ ) { if ( srcView.Columns[i].ColumnType != tgtView.Columns[i].ColumnType || srcView.Columns[i].FieldName != tgtView.Columns[i].FieldName ) { return false; } } return true; } void View_KeyDown(object sender, KeyEventArgs e) { GridView view = sender as GridView; // 붙여 넣기 if ( this.CompareGrid(this._view, view) == true && view.IsMultiSelect == true && e.Control == true && e.KeyCode == Keys.V ) { this.Paste(view); } // 복사하기 else if ( this.CompareGrid(this._view, view) == true && view.IsMultiSelect == true && e.Control == true && e.KeyCode == Keys.C ) { e.SuppressKeyPress = true; this.Copy(view); } // 모두 선택 else if ( this.CompareGrid(this._view, view) == true && view.IsMultiSelect == true && e.Control == true && e.KeyCode == Keys.A ) { this.SelectAll(view); } // 삭제 else if ( this.CompareGrid(this._view, view) == true && view.IsMultiSelect == true && e.KeyCode == Keys.Delete ) { this.DeleteRows(view); } // 오려내기 else if ( this.CompareGrid(this._view, view) == true && view.IsMultiSelect == true && e.Control == true && e.KeyCode == Keys.X ) { this.Copy(view); this.DeleteRows(view); } } /// 모두 선택 public void SelectAll(GridView view) { view.SelectAll(); } // 복사하기 public void Copy(GridView view) { StringBuilder sb = new StringBuilder(); int columnNameCnt = view.Columns.Count; for ( int i = 0; i < columnNameCnt; i++ ) { try { sb.Append(view.Columns[i].FieldName.ToString()); } catch ( ArgumentException ) { sb.Append(""); } if ( i+1 < columnNameCnt ) sb.Append(CellDelimiter); } sb.Append(LineDelimiter); int[] rows = view.GetSelectedRows(); int rowsCnt = rows.Length; for ( int i = 0; i < rowsCnt; i++ ) { int handle = rows[i]; DataRowView rowView = view.GetRow(handle) as DataRowView; if ( rowView != null ) { for ( int j = 0; j < columnNameCnt; j++ ) { try { sb.Append(rowView[view.Columns[j].FieldName].ToString()); } catch ( ArgumentException ) { sb.Append(""); } if ( j+1 < columnNameCnt ) sb.Append(CellDelimiter); } } if ( i+1 < rowsCnt ) sb.Append(LineDelimiter); } DataObject data = new DataObject(); data.SetData(DataFormats.Text, sb.ToString()); Clipboard.Clear(); Clipboard.SetDataObject(data, true); } // 붙여넣기 public void Paste(GridView view) { IDataObject data = Clipboard.GetDataObject(); if ( data.GetDataPresent(DataFormats.Text) == true ) { view.BeginUpdate(); try { string strData = data.GetData(DataFormats.Text) as string; string[] strRows = strData.Split(new string[] { LineDelimiter }, StringSplitOptions.None); string[] strColumnNames = strRows[0].Split(new string[] { CellDelimiter }, StringSplitOptions.None); List< object > list = new List< object >(); int dataCount = strRows.Length-1; // 헤더 개수 제외 int rowHandle = view.FocusedRowHandle; int targetDeleteRowCount = view.DataRowCount - rowHandle + 1; if ( rowHandle != GridControl.InvalidRowHandle && rowHandle != GridControl.NewItemRowHandle ) { // 붙여 넣기할 Row가 현재 선택된 행부터 밑에 행보다 많다. if ( targetDeleteRowCount > dataCount ) { for ( int i = rowHandle + dataCount; i < view.DataRowCount; i++ ) { list.Add(view.GetRow(i)); } } // 현재 선택된 행부터 끝까지 삭제한다. for ( int i = view.DataRowCount-1; i >= rowHandle; i-- ) { view.DeleteRow(i); } } else if ( rowHandle == GridControl.NewItemRowHandle ) { view.DeleteRow(rowHandle); } for ( int i = 1; i < strRows.Length; i++ ) { view.AddNewRow(); int handle = view.FocusedRowHandle; string[] strCells = strRows[i].Split(new string[] { CellDelimiter }, StringSplitOptions.None); int colCnt = strColumnNames.Length; for ( int j = 0; j < colCnt; j++ ) { if ( strColumnNames[j].Trim().Equals("") == false && j < strCells.Length ) { try { Type t = view.Columns[j].ColumnType; object value = null; if ( t == typeof(int) ) { if ( strCells[j] != null && strCells[j].ToString().Equals("") == false ) { try { value = Convert.ToInt32(strCells[j]); if ( value != null ) view.SetRowCellValue(handle, strColumnNames[j], value); } catch ( Exception ex ) { System.Console.WriteLine(ex.StackTrace); } } } else if ( t == typeof(DateTime) ) { if ( strCells[j] != null && strCells[j].ToString().Equals("") == false ) { try { value = Convert.ToDateTime(strCells[j]); if ( value != null ) view.SetRowCellValue(handle, strColumnNames[j], value); } catch ( Exception ex ) { System.Console.WriteLine(ex.StackTrace); } } } else if ( t == typeof(string) ) { if ( strCells[j] != null ) { try { value = Convert.ToString(strCells[j]); if ( value != null ) view.SetRowCellValue(handle, strColumnNames[j], value); } catch ( Exception ex ) { System.Console.WriteLine(ex.StackTrace); } } } } catch ( Exception ex) { //MessageBox.Show(ex.Message + "\n\n" + ex.StackTrace); } }//if ( strColumnNames[j].Trim().Equals("") == false ) }//for ( int j = 0; j < colCnt; j++ ) }//for ( int i = 1; i < strRows.Length; i++ ) DataView dv = view.DataSource as DataView; for ( int i = 0; i < list.Count; i++ ) { DataRowView drv = list[i] as DataRowView; if ( drv != null ) { DataRowView newDRV = dv.AddNew(); newDRV.BeginEdit(); try { int columNameCount= drv.Row.Table.Columns.Count; for ( int j = 0; j < columNameCount; j++ ) { string fieldName = drv.Row.Table.Columns[j].ColumnName; newDRV[fieldName] = drv[fieldName]; } newDRV.EndEdit(); } catch ( Exception ) { newDRV.CancelEdit(); } } } } catch ( Exception ex ) { MessageBox.Show(ex.StackTrace); } finally { view.EndUpdate(); } }//if ( data.GetDataPresent(DataFormats.Text) == true ) } /// 현재 선택된 로우를 삭제한다. private void DeleteRows(GridView view) { view.BeginUpdate(); int[] rows = view.GetSelectedRows(); for ( int i = rows.Length-1; i >= 0 ; i-- ) { view.DeleteRow(rows[i]); } view.EndUpdate(); } protected virtual void Detach() { if ( this._view == null ) return; this.View.KeyDown -= new KeyEventHandler(View_KeyDown); _view = null; } } }
'.Net > XtraGrid' 카테고리의 다른 글
[XtraGrid] XtraGrid Option (0) | 2013.01.24 |
---|---|
[XtraGrid] Online Document (0) | 2012.04.13 |
[XtraGrid] How to make my grid columns read-only (0) | 2012.04.08 |
[XtraGrid] Checkbox 구현하기 (1) | 2012.04.06 |
[XtraGrid] Fixed Columns (0) | 2012.04.05 |
트랙백
댓글
글
링크 : http://sonumb.tistory.com/29
Visual Studio 2005 상에서 쓰이는 Macro 환경 변수
Macro | Description |
$(ConfigurationName) | The name of the current project configuration, for example, "Debug|Any CPU". |
$(OutDir) | Path to the output file directory, relative to the project directory. This resolves to the value for the Output Directory property. It includes the trailing backslash '\'. |
$(DevEnvDir) | The installation directory of Visual Studio 2005 (defined with drive and path); includes the trailing backslash '\'. |
$(PlatformName) | The name of the currently targeted platform. For example, "AnyCPU". |
$(ProjectDir) | The directory of the project (defined with drive and path); includes the trailing backslash '\'. |
$(ProjectPath) | The absolute path name of the project (defined with drive, path, base name, and file extension). |
$(ProjectName) | The base name of the project. |
$(ProjectFileName) | The file name of the project (defined with base name and file extension). |
$(ProjectExt) | The file extension of the project. It includes the '.' before the file extension. |
$(SolutionDir) | The directory of the solution (defined with drive and path); includes the trailing backslash '\'. |
$(SolutionPath) | The absolute path name of the solution (defined with drive, path, base name, and file extension). |
$(SolutionName) | The base name of the solution. |
$(SolutionFileName) | The file name of the solution (defined with base name and file extension). |
$(SolutionExt) | The file extension of the solution. It includes the '.' before the file extension. |
$(TargetDir) | The directory of the primary output file for the build (defined with drive and path). It includes the trailing backslash '\'. |
$(TargetPath) | The absolute path name of the primary output file for the build (defined with drive, path, base name, and file extension). |
$(TargetName) | The base name of the primary output file for the build. |
$(TargetFileName) | The file name of the primary output file for the build (defined as base name and file extension). |
$(TargetExt) | The file extension of the primary output file for the build. It includes the '.' before the file extension. |
주절 주절~ 더군다나 영어!!
이럴땐 예시를 보는게 킹왕짱입니다. . -_-
- 보통 UNIX와 윈도우즈에서 말하는 Path는 "파일의 이름 및 확장자를 포함하는 경로"이고 Directory는 "파일의 경로만"을 얘기합니다.
그럼 파일의 Path가 "c:windowscmd.exe"라면 그 파일의 Directory는 "c:windows\" 인거죠. :)
또 다른 팁은 FileName = Name + Ext 가 있습니다..
그러면 이제 외우기 좀 쉬워지죠?
'IDE/Tool > Visual Studio' 카테고리의 다른 글
[Visual Basic 6.0] 마우스 휠이 동작하지 않을때 (0) | 2012.08.02 |
---|---|
[Visual Studio] Add-In 만들기 (0) | 2012.05.16 |
[Visual Studio 2005] Visual Studio 2005 에서 ildasm.exe 위치 (0) | 2012.03.10 |
[Visual Studio] 마법사 만들기 (0) | 2012.03.08 |
[Visual Studio 2008] Unicode 기반 프로그램에서 한글이 깨지는 현상 (0) | 2011.03.01 |
트랙백
댓글
글
링크 : http://msdn.microsoft.com/ko-kr/magazine/cc163491.aspx
메모리 릭 찾기
Windbg : http://www.codeproject.com/Articles/31382/Memory-Leak-Detection-Using-Windbg
NET : http://www.codeproject.com/Articles/19490/Memory-Leak-Detection-in-NET
'.Net > .Net' 카테고리의 다른 글
[.Net] Inter-Process Communication (0) | 2012.04.17 |
---|---|
[.Net] IPC (0) | 2012.04.16 |
[.Net] 가비지 수집 모니터링 (0) | 2012.04.11 |
[.Net] CLR Inside Out: 메모리 문제 조사 (0) | 2012.04.10 |
[.Net] Func 및 Action 제네릭 대리자에 가변성 사용(C# 및 Visual Basic) (0) | 2012.04.10 |
RECENT COMMENT