private void gridOT_CellClick(object sender, DataGridViewCellEventArgs e) { TablaParaPedido ta = new TablaParaPedido(); int idOt = int.Parse(gridOT.CurrentRow.Cells[1].Value.ToString()); ta.CrearTablaOt(idOt); gridDetalleOT.DataSource = ta.Tabla; gridDetalleOT.Columns[0].Visible = false;//idOt }