caherciveen
asked on
how to refresh a DataGrid
Hi, I am modifying the contents of a DataGrid cell with this line of code:
toolGrid.dataProvider.getI temAt(row) [field] = tempValue;
However, the change is not displayed on the screen. If I add a refresh line:
toolGrid.dataProvider.getI temAt(row) [field] = tempValue;
toolGrid.dataProvider.refr esh();
...the change is reflected on the screen. However, the modified row is moved from its original position to the top of the DataGrid, causing major confusion by the user. From their perspective, the row they were editing has disappeared.
Is there a better way to change the contents of a cell and have it appear immediately with nothing else about the DataGrid changing?
thanks
Kevin
toolGrid.dataProvider.getI
However, the change is not displayed on the screen. If I add a refresh line:
toolGrid.dataProvider.getI
toolGrid.dataProvider.refr
...the change is reflected on the screen. However, the modified row is moved from its original position to the top of the DataGrid, causing major confusion by the user. From their perspective, the row they were editing has disappeared.
Is there a better way to change the contents of a cell and have it appear immediately with nothing else about the DataGrid changing?
thanks
Kevin
What type is your dataprovider?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
very nice fix! works perfectly.