0
Good morning, I am making a system for a library and on the book search grid that when entering the book id in txtbox it updates and shows the results on the grid, but the grid is not updating and the data remains on the grid and does not change. If anyone knows what thanks is.
procedure Tfrm_alocar.BitBtn1Click(Sender: TObject);
var parametro:integer;
begin
parametro := strtoint(txt_livro.Text);
Form_dados.Modulo_Dados.Query_livros.Close;
Form_dados.Modulo_Dados.Query_livros.sql.Clear;
Form_dados.Modulo_Dados.Query_livros.sql.Add('select * from livros where id = :parametro');
Form_dados.Modulo_Dados.Query_livros.Parameters.ParamByName('parametro').Value := parametro;
Form_dados.Modulo_Dados.Query_livros.Open;
GridLivros.Update;
GridLivros.Refresh;
end;
blz I will try here more and more or less this msm has connection to sql server database - query of books - dataset
– Gabriel Ribeiro
well the problem is that this datasource n has the close I will try to migrate pro data set
– Gabriel Ribeiro