DataGridView help
Hi,
I have created a robotics application where data can be searched for from an internal application, the data is then stored in a Lookup Table and displayed in a DataGridView.
The first time this application runs, the data outputs to the DataGridView all at once, however any time after this, the data outputs line by line, every time lookupTable/AddRecord is called - which I do not want.
I believe this is due to the DGV DataSource being set at the end of the first run, as part of the 'update_display' automation. Any time after that, because the DataSource is already set, it is just actively updating as any new data is added to the Lookup Table.
Is there a way to change my automation so that new Lookup Table data is not updated in the DGV until I specify that it should be?
Also, another question, is there a way to force the DGV to display scroll bars at all times?
Thanks,
Ryan

Hi Thomz
Thanks for your response. My problems are solved now.
The update_display autx was not being repeatedly called, I had tested this with breakpoints. It does appear that once a DataSource is set for a DGV, any time that data is source is updated, so will be the DGV. I have tested this by setting the DataSource at the start, rather than the end, and items are now actively updated straight away. I will leave my automation this way - all data is updated the same now, plus it allows the user to see the autx working.
I attempted to implement your idea about the panel, however the scroll bars were only useful for getting the DGV back within the smaller size of the panel and that was all. The scroll bar did not increase in size as more data was added.
The reason I wanted permanent scroll bars was because my autx was crashing when the vertical scroll appeared, as data was being added. I have fixed this by setting the ScrollBars property to None whilst the automation is running and then setting it back to Both when the automation finishes, this seems to have fixed the crashing issue.
Thanks for your help.
Ryan