就是在C1FlexGrid属性contextMenuStrip中,选择自己添加的contextMenu项啊。请问。这个select如何使用,我的代码这样写的
private void fg_MouseDown(object sender, MouseEventArgs e)
{if (e.Button == MouseButtons.Right)
{
if (fg.Row < 0 || fg.Col < 0)
{
return;
}
else
{
tncurrent = Convert.ToString(this.fg[fg.Row, fg.Col]);//先鼠标点击左键找到节点,在右键找到菜单
if (tncurrent == null || tncurrent == "")
{
this.fg.Select(fg.Row,fg.Col) = tncurrent;//这里不对啊,如何写啊
}
}
}
} |