摘要: 1. int[] selects = this.m_grdView1.GetSelectedRows(); // 获取选中的行,可能是几行2. this.m_grdView1.GetRowCellValue(selects[j],"字段名"); // 获取选中的一行的某个字段的值,如果为多行则使用使... 阅读全文
posted @ 2014-04-13 09:59 zhaohc2279 阅读(727) 评论(0) 推荐(0) 编辑
摘要: 1. 添加一个Barmanager控件2. 加入popumenu控件,点击该控件右上角的黑色三角号,编辑选项,点击编辑的选项,选择事件,编辑事件。3. 在使用该右键菜单的控件添加MouseUp事件。4. 在MouseUp事件中加入代码:1 if (e.Button == MouseButton.Right)2 RightMenu.ShowPopup(Control.MousePosition);5. 编译运行程序就可以了。 阅读全文
posted @ 2014-04-13 09:00 zhaohc2279 阅读(333) 评论(0) 推荐(0) 编辑