2012-02-19 3 views

답변

10
byte[] bits = Convert.ToByte(ds.Tables[0].Rows[0][0]); 
3

사용 : 인덱스 컬럼에 저장된 데이터를 반환 인덱서 this[int]있다

byte[] bits = Convert.ToByte(ds.Tables[0].Rows[0][0]); 

ds.Tables[0].Rows[0] 반환 DataRow.

4

항목은 인덱서가 아니며 기능입니다.

byte[] bits = Convert.ToByte(ds.Tables[0].Rows[0].Item(0)); 

을 또는 당신이 당신의 table0의 0,0 위치에 항목을 원하는 경우 수행 할 수 있습니다 : 당신은 무엇을해야

byte[] bits = Convert.ToByte(ds.Tables[0].Rows[0][0]);