Form/Datagrid Non-Responsive after loading Datagrid from textadapter

Adding records to a datagrid when parsing records from a textadapter screen will result in the datagrid and the form becoming non-responsive. The cursor will change to the wait cursor. This always happens when the number of rows exceeds what can be show in the grid. Sometimes it will recover in a few seconds and I can move on but most of the time, it will not. The log file shows no errors or nothing abnormal. One of the solutions that I’ve tried is to detach the screen that was parsed but the same issue occurs every time. Another one was to delete the tableview and add it back.

@ScottC37 If you want to use a DataGrid or DataGridView (DGV) in your solution, you must make sure that all interaction with it is done off of the Windows Form thread. For example; if you have the DGV bound to a LookupTable and in your automations you add data to that LookupTable, that will cause the DGV to become unresponsive as it is not being updated on the Windows Form thread. The way to handle this is to place a button on your UI behind other controls (so it is visible technically, but invisible to a user) and call PerformClick on it when you wish to update the DGV. Use the Click event from this button to copy the LookupTable data to another identical LookupTable that is bound to your DGV. As long as you ensure that only the Windows Form thread is what is updating the DGV, it should work as expected. This is just a quirk of the .Net DGV where it requires you to use this thread to update it.