جرب هذا الكود
غير ColumnName لاسم العمود عندك
PHP كود :
Dim count = (From row As DataGridViewRow In DataGridView1.Rows _
Where row.Cells("pc").Value = "Yes" And row.Cells("pc").Value IsNot DBNull.Value _
Select row.Cells("pc").Value).Count()
اللهم لك الحمد كما ينبغي لجلال وجهك و عظيم سلطانك
في حل و ترحال


