📅  最后修改于: 2022-03-11 14:49:05.645000             🧑  作者: Mango
var count = this.GridView1.Rows.Cast()
.Count(row => row.Cells["PresentAbsent"].Value == "Present");
this.lblPresent.Text = count.ToString();