从复选框 gridview 获取 id

Get id From checkbox gridview

enter image description here

我不知道为什么我的复选框是错误的,除了我,每个人都做对了

您正在混合包。注意您的导入 - 一个来自 System.Web.UI.WebControls,另一个来自 System.Windows.Forms。删除一个或区分它们。