private void CargarListaDescartables(String _filtro) { try { int indice; foreach (var item in E.TRAEDESCARTABLES(_filtro)) { indice = dataGridListado.Rows.Add(); dataGridListado.Rows[indice].Cells[(int)Col_Lista.ID].Value = item.art_CodGen; dataGridListado.Rows[indice].Cells[(int)Col_Lista.DESCRIPCION].Value = item.art_DescGen + " " + item.artele_Desc2 + " " + item.artele_Desc1; } } catch (Exception ex) { MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }