我在DrawSubItem事件里如下写的代码,能在指定列(我这里是第三列)生成复选框,但复选框不能响应复选。if (e.Item.SubItems[2] == e.SubItem)
{
Point potCheckbox = new Point(e.Bounds.X, e.Bounds.Top + 1);
CheckBoxRenderer.DrawCheckBox(e.Graphics, potCheckbox, CheckBoxState.UncheckedNormal);
}请问有什么解决方法?
{
Point potCheckbox = new Point(e.Bounds.X, e.Bounds.Top + 1);
CheckBoxRenderer.DrawCheckBox(e.Graphics, potCheckbox, CheckBoxState.UncheckedNormal);
}请问有什么解决方法?
ItemChecked事件,在那里编辑复选框选中事件。
设置了OwnerDraw = true,设置了OwnerDraw = true,设置了OwnerDraw = true,设置了OwnerDraw = true,设置了OwnerDraw = true,设置了OwnerDraw = true,设置了OwnerDraw = true,设置了OwnerDraw = true,设置了OwnerDraw = true,设置了OwnerDraw = true,设置了OwnerDraw = true,设置了OwnerDraw = true,设置了OwnerDraw = true,