该DataRowCollection.Item财产需要行索引的整数.
我认为你遵循以下语法:
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()