如何从访问数据库中转发c#中的复选框值? [英] How retreive checkbox value in c# from access database?

查看:53
本文介绍了如何从访问数据库中转发c#中的复选框值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何从访问数据库中检索c#中的复选框值

How I retrieve check-box value in c# from access database

推荐答案

如果你想重新填充复选框,只需获取数据库中的值(可能是bool-您可能需要将其枚举为0或1)并根据数据库中的值设置checkbox.checled属性。
if you are wanting to repopulate the checkbox, just fetch the value from the database ( possibly a bool- you may need to enumerate it as a 0 or 1) and set the checkbox.checled property based on the value from the database.


如果您正在使用Windows窗体,请查看:详细的数据绑定教程 [ ^ ]



如果您使用的是ASP.Net,请查看:掌握ASP.NET数据绑定 [ ^ ]



如果你正在使用WPF,请查看:数据绑定概述 [ ^ ]



最好的问候

Espen Harlinn
If you are using Windows Forms, have a look at: A Detailed Data Binding Tutorial[^]

If you are using ASP.Net, have a look at: Mastering ASP.NET DataBinding[^]

If you are using WPF, have a look at: Data Binding Overview[^]

Best regards
Espen Harlinn


这篇关于如何从访问数据库中转发c#中的复选框值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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