Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added DataGridWithRadioButtonColumn.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 4 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
# How to add the RadioButton column in WinForms DataGrid (SfDataGrid)?
# How to Add the RadioButton Column in WinForms DataGrid?

## About the sample
This example illustrates how to add the radio button column in winforms datagrid
This example illustrates how to add the radio button column in [WinForms DataGrid](https://www.syncfusion.com/winforms-ui-controls/datagrid) (SfDataGrid).

By default, SfDataGrid doesnt have a build in RadioButtonColumn, but we can create the GridRadioButtonColumn by customizing the GridColumn, RadioButtonAdv and GridCellRendererBase in SfDataGrid.
By default, DataGrid doesn't have a build in RadioButtonColumn, but we can create the GridRadioButtonColumn by customizing the [GridColumn](https://help.syncfusion.com/cr/windowsforms/Syncfusion.WinForms.DataGrid.GridColumn.html), [RadioButtonAdv](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Tools.RadioButtonAdv.html) and [GridCellRendererBase](https://help.syncfusion.com/cr/windowsforms/Syncfusion.WinForms.DataGrid.Renderers.GridCellRendererBase.html) in SfDataGrid.

```C#
[ToolboxItem(false)]
Expand Down Expand Up @@ -198,5 +197,4 @@ public class GridRadioButtonColumn : GridColumn
this.sfDataGrid1.Columns.Add(new GridRadioButtonColumn() { MappingName = "RadioOptions", ItemCount = 3, Width = 140 });
```

## Requirements to run the demo
Visual Studio 2015 and above versions
![DataGrid with custom RadioButton column](DataGridWithRadioButtonColumn.png)