从组合框选择中过滤datagridview [英] filter datagridview from combo box selection
本文介绍了从组合框选择中过滤datagridview的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好
您能帮我从组合框中所做的选择中筛选出一个datagridview吗?我使用3tier设计方法在我的业务层中调用代码..请为我提供代码和想法,我应该上班.
Hi All
Can you please help me to filter a datagridview from the selection made in the combobox. Im using 3tier design approach for im calling code form my business layer.. please provide me with code and idea hiw i sholud go to work.
推荐答案
.您认为我们可以给您复制和粘贴代码的想法令人恐惧.首先,代码取决于您的数据库.重新组合datagridview时,处理组合框选择更改事件,检查选择了什么,并将选择传递给业务层.
This is beyond trivial. That you think we can give you copy and paste code, is scary. The code depends on your DB, for a start. Handle the combobox selection changed event, check what was selected, and pass the selection to the business layer as you rebind the datagridview.
这篇关于从组合框选择中过滤datagridview的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文