如何在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....