如何在c#winform中存储和检索数据库中的多个radiobutton [英] how to store and retrive multiple radiobutton from /in database in c# winform

查看:110
本文介绍了如何在c#winform中存储和检索数据库中的多个radiobutton的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在c#winform中存储和检索数据库中的多个radiobutton ..

i每个都有3个面板和3个radiobutton,因此共有9个radiobutton,以便如何存储和检索其值。

how to store and retrive multiple radiobutton from /in database in c# winform ..
i have 3 panels and 3 radiobutton in each so total 9 radiobuttons so how to store and retrive its value.

推荐答案

只需将其checked属性存储为布尔值

创建一个表格,将复选框的名称[Name]作为varchar

及其Checked属性[Checked]为boolean
simply store its checked property as a boolean
create a table that take the checkbox''s name [Name] as varchar
and its Checked property [Checked] as boolean


ok ...所以你在面板中有一个 Radiobutton .. 。



然后必须使用panel_id.radiobuton.text属性



之类的。 。



panel1.rediobutton1.text



然后你可以单独访问每个面板单选按钮....
ok ... so to u have a Radiobutton inside of panel ...

then tou have to use panel_id.radiobuton.text property

like ..

panel1.rediobutton1.text

then you can access separately each panel radio button....


这篇关于如何在c#winform中存储和检索数据库中的多个radiobutton的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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