表的列值作为复选框 [英] Column values of a table as checkboxes

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

问题描述

我有一个带有'location'列的表格。我希望'location'列的所有值都显示为复选框。我想根据选中的复选框构建一个sql查询。



我尝试过:



不知道如何继续这个

I have a table with 'location' column. I want all values of 'location' column to be shown as checkboxes. I want to build a sql query based on the checkboxes checked.

What I have tried:

no idea how to go ahead with this

推荐答案

对于WinForm,请检查:

如何:向Windows窗体添加控件Microsoft Docs [ ^ ]

如何:在运行时添加或删除控件集合Microsoft Docs [ ^ ]



对于ASP.NET ,请检查:

动态添加控件 [ ^ ]

如何:以编程方式将控件添加到ASP.NET网页 [ ^ ]



祝你好运!
For WinForm, check this:
How to: Add Controls to Windows Forms | Microsoft Docs[^]
How to: Add to or Remove from a Collection of Controls at Run Time | Microsoft Docs[^]

For ASP.NET, check this:
Dynamically Adding Controls[^]
How to: Add Controls to an ASP.NET Web Page Programmatically[^]

Good luck!


你可以将从Table中选择的所有不同位置绑定到复选框作为数据源。
You can just bind all distinct location selected from Table to checkbox as data source.


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

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