private void dataGrid_RowHeaderMouseClick(object sender, DataGridViewCellMouseEventArgs e) { if (e.RowIndex >= 0) { DataGridViewRow row = this.dataGrid.Rows[e.RowIndex]; objLote = LoteDAO.findById((int)row.Cells["dataGridViewTextBoxColumn1"].Value); nomeLote.Text = "Lote " + objLote.Id + " " + objLote.Codigo; nuRetirar.Value = objLote.Qtd_estoque; } }