I've some problem to insert a new row line into record without insert into cursor and then append into recordsource. That said i've five record already in existing grid list but i need to add a new line into next row under grid list.
Here is my code:
vc_tmpfile = alltrim(sys(3)) + ".dbf"
create table &vc_tmpfile (text c(254))
append from C:\tmp\aaa.out type sdf
dele all for len(ALLTRIM(text)) < 15
pack
with thisform.grid_list
Do while !EOF()
if alltrim(substr(text,1,4)) == "POPL"
.columns(2).text1.value = alltrim(substr(text,6,6))--->>It shows nothing after insert
endif
skip
enddo
endwith
Appreciate thankful to someone could help.
How did the existing 5 records get into the grid with no recordsource?
You should be updating a record source instead of updating the grid controls...
Maybe take this approach...
1) Stick data into array or temp readwrite cursor
2) Set grid recordsource to the array or cursor
3) Refresh Grid