DataTableReader dtr = dta.CreateDataReader;
DataTableReader dtr = dta.CreateDataReader;错在那里呀,我也不知道了,我看书上就是这样子写的,但老是报错,完整代码如下DataTableReader dtr = dta.CreateDataReader;
dataGridView1.CurrentRow.Cells["cinvcode"].Value = dtr["cinvcode"].ToString();