您可以使用布尔标志:
bool isFirst = true; foreach(DataRow row in myrows) { if (isFirst) { isFirst = false; ...do this... } else { ....process other than first rows.. } }