Hai Friends我在Datagridview上的C#Windows窗体上有一个问题 [英] Hai Friends I Have A Question On C# Windows Forms On Datagridview

查看:94
本文介绍了Hai Friends我在Datagridview上的C#Windows窗体上有一个问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的数据gridview中有combobox

在那个combobx第二次点击它会打开

但是我想单击

请告诉我怎么样设置



如何编写代码

in my data gridview have combobox
in that combobx second click it will opened
but i wanna single click
please tell me how to set
or
how to write code

推荐答案

你需要设置整个DataGridView的EditMode :

You need to set the EditMode of the whole DataGridView:
dataGridView1.EditMode = DataGridViewEditMode.EditOnEnter





这将改变所有列的行为,以便一旦获得焦点,它们将处于编辑模式。



This will change the behaviour for all the columns, so that as soon as they receive focus they will be in "edit mode".


这篇关于Hai Friends我在Datagridview上的C#Windows窗体上有一个问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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