添加了
grid.OwnerDrawCell += new Grid.OwnerDrawCellEventHandler(clsDrawLine.rdo4);清除,只能用
grid.OwnerDrawCell -= new Grid.OwnerDrawCellEventHandler(clsDrawLine.rdo4);
这一种方法吗?还有没有别的其它方法?
grid.OwnerDrawCell += new Grid.OwnerDrawCellEventHandler(clsDrawLine.rdo4);清除,只能用
grid.OwnerDrawCell -= new Grid.OwnerDrawCellEventHandler(clsDrawLine.rdo4);
这一种方法吗?还有没有别的其它方法?
解决方案 »
- QQ的下拉列表用c#怎么实现
- 如何把comboBox和textBox中信息存入hex文档
- c# 如何构造报文 socket 发送。
- VS2008在"windows窗体控件库"项目里面添加windows窗体,如何运行这窗体?
- [IE编程]MIME过滤导致flash被阻止如何解决?
- 求教:制作安装包时怎样能够包含一个其他的安装包??
- 将datatable中的一列转为string[]。
- c#开发web项目,它可以调用什么格式的动画。
- 很菜的问题:键盘数据过滤中存在的问题,why出现这种情况????
- 如何让程序单实例运行?
- C#USB九针打印机
- 【求助】c++ typedef struct 转换成c#类型,急!在线等!!!
切换node时,如何清除?有没有整体清除的办法?if (treeView1.SelectedNode.Name == "节点1")
{
grid.OwnerDrawCell += new Grid.OwnerDrawCellEventHandler(clsDrawLine.rdo1);
}if (treeView1.SelectedNode.Name == "节点2")
{
grid.OwnerDrawCell += new Grid.OwnerDrawCellEventHandler(clsDrawLine.rdo2);
}if (treeView1.SelectedNode.Name == "节点2")
{
grid.OwnerDrawCell += new Grid.OwnerDrawCellEventHandler(clsDrawLine.rdo2);
}......if (treeView1.SelectedNode.Name == "节点99")
{
grid.OwnerDrawCell += new Grid.OwnerDrawCellEventHandler(clsDrawLine.rdo99);
}