※ DataTable Merge
DataTable dtTemp = dt.Clone();
// PrimaryKey 셋팅(Merge할때 기본키값을 설정하지 않으면 테이블 Merge시 중복된 데이터가 들어갈수 있습니다.
dtTemp.PrimaryKey = new DataColumn[] { dtTemp.Columns[0] };
dtTemp.Merge(dt);
'asp.net with c#' 카테고리의 다른 글
c# 연산자 (0) | 2012.02.01 |
---|---|
DataTable에 PrimaryKey 설정 (0) | 2012.01.10 |
DataTable 중복된 값 제거 (0) | 2012.01.10 |
DataTable 가로 세로 변환 (0) | 2012.01.10 |
컨트롤 캡쳐 (0) | 2012.01.10 |