Click here to Skip to main content
15,893,487 members
Please Sign up or sign in to vote.
2.00/5 (2 votes)
hi I have a datagrid with computernames and their status(connected/notconnected),
i have to change the status to notconnected if any computer disconnects while running the application. how should i manage it?
Posted
Comments
Tushar sangani 7-Jan-15 1:20am    
You have a Use thred to rebind the grid
Praveen Kumar Upadhyay 7-Jan-15 1:35am    
Reload your grid after every specific minute and Run the code in background in Thread.
Namuna Gautam 7-Jan-15 1:45am    
but if I have to change instantly after it is disconnected,is there any other way??
Praveen Kumar Upadhyay 7-Jan-15 1:49am    
instantly means within 1 sec right? Then run your code in the background after every 500 milli seconds.
Namuna Gautam 7-Jan-15 2:14am    
thanks, it worked, also if there is any change in datagrid i should set a sound like notification, can you help me with this also??

1 solution

Further to the comments from @Praveen Kumar Upadhyay you might find this CP article useful Monitor and Manage Services on Remote Machines[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900