3 column
GridViewRow gvr = GridView1.Rows[i];
CheckBox ckb = (CheckBox)gvr.FindControl("CheckBox1");
if (ckb.Checked == true)
{
ckb.Text.ToString();
gvr.Cells[2].Text ="Test"+ i;
//if a column is invisible ,it's text data will be null
}
else {
ckb.Text.ToString();
gvr.Cells[2].Text.ToString();
}
}
沒有留言:
張貼留言