当我按下&时如何在datagridview中添加列表框向下键,光标应指向向上和向下;向下 [英] how to add listbox in datagridview and when i press up & Down key the cursor should point to up & down

查看:69
本文介绍了当我按下&时如何在datagridview中添加列表框向下键,光标应指向向上和向下;向下的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在datagridview中添加列表框,当我按向上和向下键时,光标应指向向上和向下

how to add listbox in datagridview and when i press up & Down key the cursor should point to up & down

推荐答案

不要将网格视图列设置为自动生成的,在设计时创建所需的列数并将其转换为模板字段,现在单击gridview的省略号按钮下方的编辑模板,

现在,向其中添加Listview控件.

这只是将控件添加到网格视图.
Dont make the grid view columns as Auto Generated ones, In design time create required number of columns and convert any one of them as template field now click on the edit template which comes under the ellipsis button of the gridview,

Now add Listview control to that..

This is just to add the control to grid view.


这篇关于当我按下&时如何在datagridview中添加列表框向下键,光标应指向向上和向下;向下的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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