private void Detalhes_Load(object sender, EventArgs e) { int codServico = Convert.ToInt32(instancia.DGservicos.CurrentRow.Cells[8].Value); sql = "SELECT * FROM tb01_clientes, tb02_servicos WHERE tb01_cod = tb02_cod_cliente AND tb02_cod = " + codServico; model.open(); model.Execsql(sql); carregaInfo(); model.close(); sql = "SELECT * FROM tb03_movimentacoes, tb02_servicos WHERE tb02_cod = tb03_cod_servico AND tb02_cod = " + codServico + " order by tb03_data_pagamento desc"; model.open(); model.Execsql(sql); carregaGrid(); model.close(); DGmovimento.ClearSelection(); }
private void DGmovimento_MouseClick(object sender, MouseEventArgs e) { DGmovimento.ClearSelection(); }