Postada em 28/06/2004 19:36 hs
Caro Arm.g Veja, voc ê está mandando carregar seu Grid com apenas uma linha, do jeito que está: For i = 1 To 1 MSHFlexGrid1.TextMatrix(i, 0) = TxtCodProduto.Text MSHFlexGrid1.TextMatrix(i, 1) = TxtProduto.Text MSHFlexGrid1.TextMatrix(i, 2) = TxtUnidade.Text MSHFlexGrid1.TextMatrix(i, 3) = TxtQuantidade.Text MSHFlexGrid1.TextMatrix(i, 4) = TxtPreUnitario.Text MSHFlexGrid1.TextMatrix(i, 5) = TxtPreTotal Next
Normalmente, se faz o preenchimento com o banco de dados. Tipo assim: With Dados.rsGeral Do While Not .EOF fxgPesquisa.Rows = fxgPesquisa.Rows + 1 Linha = fxgPesquisa.Rows - 1 fxgPesquisa.TextMatrix(Linha, 0) = Trim(!NProtocolo & "") fxgPesquisa.TextMatrix(Linha, 1) = Format(Trim(!DataProt & ""), "dd/mm/yyyy") fxgPesquisa.TextMatrix(Linha, 2) = Trim(!Hora & "") fxgPesquisa.TextMatrix(Linha, 3) = Trim(!NProcesso & "") 'Format(Trim(!Hora & ""), "00:00:00") fxgPesquisa.TextMatrix(Linha, 4) = Trim(!Forma & "") fxgPesquisa.TextMatrix(Linha, 5) = Trim(!Objeto & "") fxgPesquisa.TextMatrix(Linha, 6) = Trim(!Apresentante & "") fxgPesquisa.TextMatrix(Linha, 7) = Trim(!Destino & "") .MoveNext Loop
.Close End With
Aí, vai preenchendo as linhas com os dados existentes no BD.
Boa sorte e t+
Feliz aquele que passa o que sabe e aprende o que ensina 
|