关于列表框的问题 [英] question about listbox

查看:76
本文介绍了关于列表框的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使列表框中的条件包含员工姓名,以便在列表框中选择任何员工姓名,然后显示我在datagridview中选择的所有员工数据
编写该代码是什么?


[edit]已删除代码块[/edit]

I want to make condition within listbox contains employees names so that select any employee name within listbox then show all employee data that I selected in datagridview
what''s the code to make that?


[edit]Code block removed[/edit]

推荐答案

1)处理Listbox.SelectedIndexChanged事件
1) Handle the Listbox.SelectedIndexChanged event MSDN[^]

2) Update the DataGridView by your preferred method.


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

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