'a single radio button check between several

I have a datagrid that imports data and this data is affiliated with columns, my concern is that I have 2 radio buttons and I would like when I select a radio button the other on the same line is automatically deselected. I tried to find the solution but still no find so I ask for your help Thank you!



Solution 1:[1]

It depends what UI framework you use:

For WinForms:

https://stackoverflow.com/a/3851776/18990321

For WPF:

You should use the GroupName property.

https://wpf-tutorial.com/basic-controls/the-radiobutton-control/

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 johann