当前位置:编程学习 > C#/ASP.NET >>

求思路与代码、



想做如图效果,要怎么实现? --------------------编程问答-------------------- 给网格添加右键事件
新建一个窗体
然后传一个值给这个窗体
其他的应该好办把
不过这个效果的创意不错  抄袭下 --------------------编程问答-------------------- 做个弹出层 --------------------编程问答-------------------- --------------------编程问答-------------------- 感谢各位了,求代码。。。 --------------------编程问答-------------------- 很好的展现方式 --------------------编程问答-------------------- 在右击事件弹出窗体 --------------------编程问答-------------------- //修改原料
        private void dataGridViewX2_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (dataGridViewX2.CurrentRow.Cells[0].Value.ToString().Trim() != "")
            {
                string ywh = dataGridViewX2.CurrentRow.Cells["编号"].Value.ToString().Trim();
                MaterialEdit materialedit = new MaterialEdit(GetTextValue, SetTextValue) { Text = "正在修改原料:" + ywh, Owner = this };
                materialedit.Show();
            }
        }


MaterialEdit 这个窗体的代码我就不发了 --------------------编程问答-------------------- 除 --------------------编程问答-------------------- 除 --------------------编程问答--------------------
右键弹出
引用 9 楼 ydsunny 的回复:
楼主,你是要右键弹出对话框,还是鼠标在上面显示提示框的效果呢。



--------------------编程问答-------------------- 感谢,但是我用的listview 
引用 7 楼 feng_3630 的回复:
//修改原料
        private void dataGridViewX2_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (dataGridViewX2.CurrentRow.Cells[0].Value.ToString().Trim() != "")
……
--------------------编程问答-------------------- 那就在ListView上加右键消息
弹出一个对话框 就行了
补充:.NET技术 ,  C#
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,