السلام عليكم
يعطيكم العافية
أحبب أن أقدم معلومة قد تكون مفيدة لكم ألا وهي تلوين بعض السطور في الداتا قريد حسب شرط معين
private void button1_Click(object sender, EventArgs e)
{
this.dataGridView1.Rows.Add(this.textBox1.Text, this.textBox2.Text, this.maskedTextBox1.Text);
if (int.Parse(this.textBox1.Text) == 4)
{
this.dataGridView1.Rows[this.dataGridView1.NewRowIndex-1].Cells[0].Style.BackColor = Color.Wheat;
this.dataGridView1.Rows[this.dataGridView1.NewRowIndex-1].Cells[1].Style.BackColor = Color.Wheat;
this.dataGridView1.Rows[this.dataGridView1.NewRowIndex-1].Cells[2].Style.BackColor = Color.Wheat;
}آمل أن تنتفعوا به
ولا تنسوني من صالح الدعاء