dataGridView和contextMenuStrip逻辑问题 [英] dataGridView and contextMenuStrip logic problum

查看:88
本文介绍了dataGridView和contextMenuStrip逻辑问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用datagridview来了解equerry的后续状态。职员选择任何一行并右键单击(我有使用上下文菜单)有三个选项1.跟随,

2.取消enquerry,3。转换为regirtration。我只是想如果用户点击第二个和第三个选项并按照工作顺序(转到取消表单或注册表单)之后那些选项将不会显示更多或者不可能比上下文菜单在该行上变得无效。

因为是学生取消他们的enquerry,学院不能做任何事情,应用程序只显示这行灰色和上下文菜单将无法工作

i已经使用此代码转到注册页面。

string sname = dataGridView1.SelectedRows [0] .Cells [0] .Value.ToString();

string contectno = dataGridView1.SelectedRows [0 ] .Cells [1] .Value.ToString();

注册r = new注册(sname,contectno);

r.Show();

i use a datagridview for follow up status of institute equerry. clerk select any row and right click ( i have use context menu) there is three option 1.follow up,
2. cancel enquerry, 3. convert to regirtration. i just wanted if user click 2nd and 3rd option and work according(go to the cancel form or registration form) after that on those row those option will not display more or is it not possiable than context menu become unactive on that row.
because is a student cancel their enquerry, institute can't do anythings, application just show this row in grey color and context menu will not work
i have using this code for goto the registration page.
string sname = dataGridView1.SelectedRows[0].Cells[0].Value.ToString();
string contectno = dataGridView1.SelectedRows[0].Cells[1].Value.ToString();
Registration r = new Registration(sname, contectno);
r.Show();

推荐答案

任何机构都可以就此提出建议
can any body advise me on this please


这篇关于dataGridView和contextMenuStrip逻辑问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆