public bool isAdded(string g_userName) { //如果已经申请提现,返回true for (int j = 0; j < dataGridView2.Rows.Count; j++) { if (dataGridView2.Rows[j].Cells[2].EditedFormattedValue.ToString() == g_userName) { return true; } } return false; }