Reputation: 8928
This is a problem I've faced a couple of times now and never really been satisfied with how it's turned out. We use DevExpress GUI toolkit in our app which has a RadioGroup control that seems rather inflexible. Usually when we find ourselves wanting to use radio buttons, there are user inputs associated with the radio button choice. What we usually do is something like this:
So this has several obvious problems with it:
So, is there anything within DevExpress that we should be using instead?
Failing that, is there any way to put singular RadioGroupItems into the form and position them myself?
Upvotes: 1
Views: 2253
Reputation: 6621
You can use several CheckEdit
controls. Set the CheckEdit.Properties.RadioGroupIndex
property of each CheckEdit
to the same value and set CheckEdit.Properties.CheckStyle
to CheckStyles.Radio
value.
CheckEdit
control aligns with any other controls.CheckEdit.EditValue
property to enable and disable controls.CheckEdit
control can be controlled independently.Upvotes: 1