Good day this time my question is a bit simple but forget how to do it, it turns out that I am loading a ComboBox
with the information contained in a tabla
, the Combo
is loaded correctly, I just want to add to this as the default option the legend " Seleccione
" before all other items that are loaded from the base de datos
, if someone can remind me how to do it, I would greatly appreciate it.
I enclose the method that I did in order to load the Combo.
public void CargarDepartamentos()
{
try
{
dtInfoDeptos = objValidaEmpleados.Departamentos();
if (dtInfoDeptos.Rows.Count>0)
{
cmbDepartamento.DataSource = dtInfoDeptos;
cmbDepartamento.ValueMember = "Dpto_ID";
cmbDepartamento.DisplayMember = "Dpto_Descripcion";
}
}
catch (Exception ex)
{
ex.ToString();
}
}