Tech
Forums
Jobs
Books
Events
Videos
Conference
Annual Conference
Bcrypt
Ai Conference
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
1
Answer
filling in checkboxes and such from existing data
Ask a question
Ask a question
Upload Source Code:
Select only zip and rar file.
Baruch F
16y
1.9k
1
Reply
What is the recommended way to fill in radio buttons and checkboxes from existing data. Is it just a bunch of if statements or is there something cleaner? Like the following example;
if (rehabPrognosis == "01")
rdo270RehabPrognosis1Good.Checked = true;
else if (rehabPrognosis == "UK")
rdo270RehabPrognosisUKUnknown.Checked = true;
else if (rehabPrognosis == "00")
rdo270RehabPrognosis0Guarded.Checked = true;
Thats just one set of radio buttons. In my program I might have 100 such problems
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
Disable ClearType text rendering of RichTextBox
values inputed in one form and used in another form