I need to put a RadioButton against each Row in a DataGrid view . But Iam unable to find a control like DataGridViewRadioButtonColumn just like DataGridViewTextBoxColumn . So how should I go about doing it ? Thanks in Advance (User can only select one radio button)
You will have to create your own custom Cell and Column to implement this functionality.
There is an excellent article on MSDN that describes this scenario almost exactly. It shows you how to create a custom radio button cell that supports multiple radio buttons per cell. The code could easily be adapted to allow just one radio button per cell.
The article is written for Visual Studio 2005, but should work equally well for VS2008 and VS2010.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With