21-02-20, 03:15 PM
(آخر تعديل لهذه المشاركة : 21-02-20, 03:17 PM {2} بواسطة asemshahen5.)
PHP كود :
DataGridView1.AllowUserToDeleteRows = False
DataGridView1.AllowUserToAddRows = False
DataGridView1.ReadOnly = True
Label1.Text = (From x In DataGridView1.Rows Where x.Cells("pc").Value.Equals("yea")).Count
Label2.Text = (From x In DataGridView1.Rows Where x.Cells("laptob").Value.Equals("yea")).Count
ضع بدل "PC" رقم ترتيب العامود ابتداء من 0 و نفس الشيئ على عامود "laptob" ليكون الكود مثالا كالتالي :
PHP كود :
DataGridView1.AllowUserToDeleteRows = False
DataGridView1.AllowUserToAddRows = False
DataGridView1.ReadOnly = True
Label1.Text = (From x In DataGridView1.Rows Where x.Cells(6).Value.Equals("yea")).Count
Label2.Text = (From x In DataGridView1.Rows Where x.Cells(7).Value.Equals("yea")).Count
سبحان الله وبحمده سبحان الله العظيم و الحمد لله ولا اله الا الله والله اكبر
