stiaan Posted May 14, 2014 Share Posted May 14, 2014 Hi is it possible to change the DBGrid row colors (or highlight the row) on the fly. What I'm trying to do is to show what entries are viewed by others users on the DBGrid by highlighting the row. For example: If the entry is viewed by another user, then i want to "highlight" that specific DBGrid row on all connecting clients. regards Stiaan Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted May 14, 2014 Administrators Share Posted May 14, 2014 You need to use a uniTimer and refresh the grid if there are changes. Quote Link to comment Share on other sites More sharing options...
stiaan Posted May 14, 2014 Author Share Posted May 14, 2014 No problem. That's what I thought. Quote Link to comment Share on other sites More sharing options...
asapltda Posted May 21, 2014 Share Posted May 21, 2014 Hi is it possible to change the DBGrid row colors (or highlight the row) on the fly. What I'm trying to do is to show what entries are viewed by others users on the DBGrid by highlighting the row. For example: If the entry is viewed by another user, then i want to "highlight" that specific DBGrid row on all connecting clients. regards Stiaan . What I'm trying to do is to show what entries are viewed by others users on the DBGrid by highlighting the row. For example: If the entry is viewed by another user, Hello Might you explain how you do this, know that they are watching another user registry Quote Link to comment Share on other sites More sharing options...
stiaan Posted May 22, 2014 Author Share Posted May 22, 2014 Hi It is very simple to know what entries are being viewed on the DBGrid by various users. I do it by saving a file with the SESSIONID=<DataSet Index>. So everytime a user clicks on a new line on the DBgrid, it reads the file, see what other sessions are viewing the same entry and then display accordingly. If the clicked entry is not being viewed by another user, I then update the file. (The trick comes in to clean out old sessions.) Stiaan Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.