protected void update_Status_Click(object sender, EventArgs e) { List<int> id = new List<int>(); foreach (GridViewRow row in GridView1.Rows) { int i = row.RowIndex; CheckBox cb = (CheckBox)row.FindControl("SelectCashout"); if (cb != null && cb.Checked) { if (GridView1.Rows[i].Cells[2].Text == "Requested") { int x = Convert.ToInt32(GridView1.Rows[i].Cells[0].Text); id.Add(x); } } } }
int x = GridView1.Rows[i].Field<int32>("Your Column or Field Name");</int32>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)