111,120
社区成员
发帖
与我相关
我的任务
分享DataRow[] rows = dtStation.Select("Name='刘玲'");
if rows.Length > 0
{
foreach(DataRow row in rows)
{
//对Row进行操作
}
}()
string str = "刘玲";
DataRow[] foundRows = dtStation.Select("Name='str'");
for (int i = 0; i < foundRows.Length; i++)
{
string strtest= foundRows[i][0].ToString();
}
dtStation.Select("Name='刘玲'")
for (int i = 0; i < dt.Rows.Count; i++)
{
if (dt.Rows[i][1].ToString().Equals(str))
{
index= i;
break;
}
}