Please check the different ways listed below to add combobox in datagridview.
In WPF, adding a ComboBox inside a DataGrid is very common—and the clean way to do it is with a DataGridComboBoxColumn.
Let’s walk through it clearly
1. Basic ComboBox inside DataGrid
XAML
2. Provide ComboBox items
You need a list for the dropdown.
Option A: Static list in XAML
Option 1Option 2Option 3
3. Data model (C#)
public class MyItem
{
public string Name { get; set; }
public string Category { get; set; }
}
4. Bind data to DataGrid
public MainWindow()
{
InitializeComponent();
myGrid.ItemsSource = new List
{
new MyItem { Name = "Item 1", Category = "Option 1" },
new MyItem { Name = "Item 2", Category = "Option 2" }
};
}
5. Dynamic ComboBox per row (important)
If each row has its own dropdown list:
public class MyItem
{
public string Name { get; set; }
public string Category { get; set; }
public List CategoryOptions { get; set; }
}
6. Advanced (more control with template)
If you want full control (styling, events), use DataGridTemplateColumn:
Key Concepts:
SelectedItemBinding ? binds selected value to your data
Rajanikant HawaldarPosted Mar 17, 2026, 11:46 AM
Hi, Check below links
https://www.c-sharpcorner.com/UploadFile/9f4ff8/add-combobox-and-checkbox-into-the-datagrdiview-in-C-Sharp/
https://www.c-sharpcorner.com/blogs/steps-to-add-combobox-inside-datagridview-window-form
Raghunath BhukanPosted Mar 17, 2026, 6:03 AM
Hi Jay,
Please check the different ways listed below to add combobox in datagridview.
In WPF, adding a ComboBox inside a
DataGridis very common—and the clean way to do it is with aDataGridComboBoxColumn.Let’s walk through it clearly
1. Basic ComboBox inside DataGrid
XAML
2. Provide ComboBox items
You need a list for the dropdown.
Option A: Static list in XAML
3. Data model (C#)
4. Bind data to DataGrid
5. Dynamic ComboBox per row (important)
If each row has its own dropdown list:
6. Advanced (more control with template)
If you want full control (styling, events), use
DataGridTemplateColumn:Key Concepts:
SelectedItemBinding? binds selected value to your dataItemsSource? dropdown listDataGridComboBoxColumn? quick & simpleDataGridTemplateColumn? flexible & powerful