日期:2014-05-18 浏览次数:20996 次
private void NOPAY_CellClick(object sender, DataGridViewCellEventArgs e)
{
double c = 0;
if (e.ColumnIndex == 0)
{
for (int i = 0; i < this.NOPAY.RowCount; i++)
{
if (this.NOPAY.Rows[i].Cells[0].Value.ToString () == "1")
{
c += double.Parse(this.NOPAY[4, i].Value.ToString());
this.label5.Text = c.ToString();
}
}
}
}
for (int i = 0; i <= gvlistdetailauChoix.Rows.Count - 1; i++)
{
CheckBox cbox = (CheckBox)gvlistdetailauChoix.Rows[i].FindControl("cbNumerolist");
if (cbox.Checked == true)
{
listnumero.Add(gvlistdetailauChoix.Rows[i].Cells[1].Text);
listnom.Add(gvlistdetailauChoix.Rows[i].Cells[2].Text);
}
}