You need to put a RadioButton against every row in the DataGrid view in a Winform application

I need to put a RadioButton against every row in the DataGrid view. But I can not find a control like DataGridViewRadioButtonColumn, like DataGridViewTextBoxColumn. So how should I do this? Thanks in advance (User can select only one radio button)

+5
source share
1 answer

To implement this functionality, you need to create your own box and column.

a great 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 can be easily adapted to include only one switch per cell.

This article was written for Visual Studio 2005, but should work equally well for VS2008 and VS2010.

+2
source

All Articles