Help me, I have Combobox in Datagriview i need bind combobox, but my code no bind it.
DataSet ds = new DataSet();
ds = neP.NE_Cargar_Procedimientos_Costos();
DataGridViewComboBoxColumn cbox = new DataGridViewComboBoxColumn();
foreach (DataGridViewRow row in dgvCostos.Rows)
{
if (dgvCostos.Columns[2].Name == "storedproc")
{
cbox.DataSource = ds.Tables[0].DefaultView;
cbox.DisplayMember = "name";
cbox.ValueMember = "id";
}
}
Help me :(