Atozed Forums
Grids - Refresh & change record - Printable Version

+- Atozed Forums (https://www.atozed.com/forums)
+-- Forum: Atozed Software Products (https://www.atozed.com/forums/forum-1.html)
+--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html)
+---- Forum: English (https://www.atozed.com/forums/forum-16.html)
+----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html)
+----- Thread: Grids - Refresh & change record (/thread-2543.html)



Grids - Refresh & change record - StephanM - 10-29-2021

I need a little help with grids.

1. When I post changes, the grid is not refreshed to show the changes.
2. When I click on a row in a grid, the record is not selected. 
   I see the page reload, but the first row is always selected.

I just got the latest release v15.2.41

Thank for any advice


RE: Grids - Refresh & change record - StephanM - 10-30-2021

I found the answer to question 2.
You assign an event to the grid's first column's OnClick event (not OnAsyncClick) and locate the new record there.

Still looking for a way to refresh the grid with changed data.
I tried the following but no success.
grid->Invalidate() ;
grid->Repaint() ;
grid->RepaintControl() ;
grid->Refresh() ;


RE: Grids - Refresh & change record - Jose Nilton Pace - 10-30-2021

Hi, in IWDBGrid i do:
IWDBGrid.DoRefreshControl := True;


RE: Grids - Refresh & change record - StephanM - 11-01-2021

FYI, what I found is that refresh does not work when the dataset is in edit mode.
That was my problem.