this has nothing to do with the grid. Selecting a row in the grid makes it the active row. Simply set textboxes controlsource to alias.fieldname
You might or might not need thisform.refresh() in the grids afterrowcolchange() event. But in general a change of row position in the controlsource is reflected in controls display.
It would need to be thisform.grid1.column1.text1.value, but it's better to not adress the grid, it's just displaying the table, so go for the current record in the table.
That concept is valid for other controls, too. Unless you're not adressing THIS.VALUE eg in the moment of validate, rather adress the table/cursor/alias.
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.