Good morning friends of the group,
In my fight about BROWSE and TSBROWSE the winner was GRID, however I do not have much knowledge about the use of GRID, I realized that a Matrix is used and the GRID can be created empty or let's say with the first 100 records, so far I understand, but I have two problems, first: When I include a new record I need to insert the corresponding data at the end of the GRID and if possible position it on it, second: How to select a record in case of change or need for use, how to get the content of the CODE column to search for the correct record in the database and if it is a change, update the new information in the GRID, for example, supposing I have a GRID of Customers and there are the columns "Code", "Name", "Phone", I need to find the record corresponding to that line of the GRID by CODE and change the phone number and the new phone number I need to update in the GRID, without the system needing to update the GRID all over again.
If any of you have an example on these two topics I would be grateful, the examples in the SAMPLES folder did not help me.
Thank you all.
Valteçom
Uberaba MG Brazil.
Bom dia amigos do grupo,
Em minha briga sobre BROWSE e TSBROWSE o vencedor foi o GRID, porém não tenho grande conhecimento sobre o uso do GRID, percebi que é usado uma Matriz e o GRID pode ser criado vazio ou digamos com os primeiros 100 registros, até ai eu entendi, mas eu tenho dois problemas, primeiro: Quando eu incluir um novo registro eu preciso inserir os dados correspondentes no final do GRID e se possível posicionar sobre ele, segundo: Como selecionar um registro em caso de alteração ou necessidade de uso, como pegar o conteudoo da coluna CÓDIGO para buscar o registro certo no bancoo de dados e se for uma alteração, atualizar a nova informação no GRID, exemplo, supondo que tenho um GRID de Clientes e existem as colunas "Código","Nome","Telefone", preciso encontrar o registro correspondente aquela linha do GRID pelo CÓDIGO e alterar o numero de telefone e o numero de telefone novo eu preciso atualizar no GRID, sem que pra isso o sistema precise atualizar o GRID todo novamente.
Se algum dos amigos tiver um exemplo sobre esses dois temas eu ficarei grato, os exemplos existentes na pasta SAMPLES não me ajudaram.
Obrigado a todos.
Valteçom
Uberaba MG Brasil.