if (e.ColumnIndex == 0 && e.RowIndex != -1) //{ DataGridViewComboBoxCell comboCell = gdvReturnOrder.Rows[e.RowIndex].Cells["Column9"] as DataGridViewComboBoxCell; if (comboCell != null) { comboCell.Value = comboCell.Selected; } And loaded the the column through..this way:(On Button Click) //gdvReturnOrder_Load(); <pre><pre lang="text">for (int index = 0; index < this.gdvReturnOrder.Rows.Count; index++) { DataGridViewComboBoxCell dc = new DataGridViewComboBoxCell(); dc.Items.Add("Good"); dc.Items.Add("Loss"); dc.Items.Add("Damaged"); this.gdvReturnOrder.Rows[index].Cells["Column9"] = dc; this.gdvReturnOrder.Rows[index].Cells["Column9"].Value = dc.Items[0]; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)