110,536
社区成员
发帖
与我相关
我的任务
分享
private void dgvTopMenu_CellFormatting(object sender, DataGridViewCellFormattingEventArgs e)
{
if (e.ColumnIndex == dgvTopMenu.Columns["IsCheckedCol"].Index)
{
string UserGroupID = Convert.ToString(
dgvTopMenu.Rows[e.RowIndex].Cells["UserGroupIDCol"].Value);
if (!string.IsNullOrEmpty(UserGroupID))
{
DataGridViewCheckBoxColumn o = dgvTopMenu.Rows[e.RowIndex].Cells["IsCheckedCol"] as DataGridViewCheckBoxColumn;
//怎么没有Checked属性
}
}
}