📅  最后修改于: 2022-03-11 14:48:54.431000             🧑  作者: Mango
if (dtData.DataRowCount > 0)
{
foreach (int i in dtData.GetSelectedRows())
{
DataRow row = dtData.GetDataRow(i);
MessageBox.Show(row[0].ToString());
}
}