Question is for Windows Forms DataBinding
Let's say this is my custom class
public class SimpleClass : INotifyPropertyChanged
{
public Name
{get; set;}
char OrderType;
...
}
OrderType is P for purchase order, S for sales order. I for Invoice etc that I need to show as a group of radiobuttons on the Windows Form
for textboxes this is the databinding syntax
Binding nameBinding = new Binding("Text", this.SimpleObject, "Name", true);
this.nameTextBox.DataBindings.Add(nameBinding);
How to databind the OrderType to a groupbox that contains three radiobuttons