我想从 datareader 获取一个值,但是有一个错误叫做
"No data exists for the row/column".
这是我的代码
//select the group where status is active
OleDbCommand com2 = new OleDbCommand("select group from tblBillConfig where status=1 group by group",con);
OleDbDataReader dr2 = com2.ExecuteReader();
//int i = Convert.ToInt32(dr2);
string ii = dr2["group"].ToString();
MessageBox.Show(ii);
请问有人可以帮忙吗?