asp.net with c#

DataTable에 PrimaryKey 설정

damian 2012. 1. 10. 10:31

※ DataTable에 PrimaryKey 설정

DataColumn[] dc = new DataColumn[1];
dc[0] = dt.Columns[0];
dt.PrimaryKey = dc;
dt.AcceptChanges();

'asp.net with c#' 카테고리의 다른 글

(펌).NET에서 javascript escape,unescape 함수와 같은 역할을 하는 것은?  (0) 2012.02.03
c# 연산자  (0) 2012.02.01
DataTable Merge  (0) 2012.01.10
DataTable 중복된 값 제거  (0) 2012.01.10
DataTable 가로 세로 변환  (0) 2012.01.10