24-09-18, 10:02 AM
كود :
string v24 ="";
foreach (DataGridViewRow r in this.dataGridView1.Rows) {
if (r.Cells[24].Value == null || r.Cells[24].Value.ToString() == "")
r.Cells[24].Value = v24;
v24 = r.Cells[24].Value.ToString();
}