2010-02-06 1 views

답변

5

속성은 행 인덱스에 정수가 필요하다.

난 당신이 생각하는 다음 구문 후 :

txtAddress.Text = DB.ProfileDataset.Tables("tblCustomers").Rows(0)("Address").ToString() 

편집 명심해야 할

뭔가 :

original code 
    = DB.ProfileDataset.Tables("tblCustomers").Rows.Item("Address").toString 
compiler sees 
    = DB.ProfileDataset.Tables.Item("tblCustomers").Rows.Item("Address").toString 
fixed code 
    = DB.ProfileDataset.Tables("tblCustomers").Rows(0)("Address").ToString() 
compiler sees 
    = DB.ProfileDataset.Tables.Item("tblCustomers").Rows.Item(0).Item("Address").ToString()