- private void radioButton1_CheckedChanged(object sender, EventArgs e) F
- {
- if (radioButton1.Checked)
- {
- //绘制表格
- c1flexGrid.OwnerDrawCell += new c1flexGrid.OwnerDrawCellEventHandler(clsDrawEllipse.rdo1);
- }
- else
- {
- //表格初始化
- c1flexGrid.OwnerDrawCell -= new c1flexGrid.OwnerDrawCellEventHandler(clsDrawEllipse.rdo1);
- }
- }
复制代码
现在想放弃使用radiobutton而换用treeView
点击treeView的各个Node,想实现与radiobutton_checkChanged事件相同的效果,该用treeView的什么事件呢?
treeView1_AfterSelect 效果不是很哈,执行else后面的语句会产生错误(表格没有被初始化)
- if (treeView1.SelectedNode.Name.ToString() == "节点8")
- {
- //
- }
复制代码 |
|