I have a datagrid that is updated with a timerEvent. The problem is the when the datagrid is updated it looses the selelecteditem.
I have a workaround for this but it doesent work 100%. The solution i have found is to save the selectedItem.id and then llop thru all items when the datagrid is updated and set the selectedItem to my saved selectedItem.id. But... When i do that the selection is back to the datagrid, and if im currently writing in a textarea it will lose focus back to the datagrid. Is there a better solution for this or do i have to also save the current control that is selected and when the datagrid is updated set it back?

