FIFA,
If you mean remove a "row" in the grid, remember that it's just the visual representation of the rows of the underlying table/cursor/view - just "delete" that row. You may need to use DELETE, change the filter, or requery the underlying data to accomplish this.
Hi,
Thanks for your reply,
Paka,I read data from an Alias "Art_con" and I control cursor by preesing enter key and the cursor moves to next row but I want to remove row if I make a wrong instruction, how can Iresolve this?
Thanks for yopur attention.
As Rick says, the grid is just the visual presentation of the data in a table. So you need to change the data to alter what the grid shows.
There is a property of a grid called DeleteMark. This defaults to TRUE and you see a narrow column on the left side of the grid. Clicking in that column sets the underlying record as DELETED().
Then set the grid's RecordSource to an empty string [], then either pack the table, or re-run the view/selection and then set the RecordSource back again. That's the way I've done this sort of thing and it seems to work for me.
Hi,
Thanks for your reply and attention, it works now I have problem with scrollbar of the grid of the 2nd form (form1 call form2 which is a search grid for form1)I can go down with cursor but I can't go up only by mouse, notes I'd like to use only keybord never mouse.
Thanks for your attention.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.