I've got delete button at the end of each row (second column) of DataGridView. On click I remove row from DataGrid and from the list which is data source of my grid.
private List<multiSet> createdMap = new List<multiSet>();
On button click I can delete element form my DataGridView (named DrawGrid ), but it works only for first click, then I can't delete any element
private void DrawGrid_CellContentClick(object sender, DataGridViewCellEventArgs e)
{
if (e.RowIndex < 0)
return;
if (e.ColumnIndex == 1)
{
createdMap.RemoveAt(e.RowIndex);
DrawGrid.DataSource = createdMap.ToList();
}
}

DrawGrid.DataSource = new BindingSource() { DataSource = createdMap.ToList() };and removeDrawGrid.DataSource = createdMap.ToList()in DrawGrid_CellContentClick. - Blake ThingstadDrawGrid.DstaSource = nulland thenDrawGrid.DataSource = createdMap;. - Reza Aghaei