110,571
社区成员
发帖
与我相关
我的任务
分享
#region 全选事件
/// <summary>
/// 全选事件
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void chAll_CheckedChanged(object sender, EventArgs e)
{
for (int i = 0; i < this.gridView1.RowCount; i++)
{
if (this.chAll.Checked)
{
this.gridView1.SetRowCellValue(i, "Check", true);
}
else
{
this.gridView1.SetRowCellValue(i,"Check",false);
}
}
}
#endregion