i am using c# and when i try to fill my datagridView most of the time a big red cross apears.
i searched for this and people say that you have to add
In YourForm.Designer.cs look for string gridView = new DataGridView()
and replace it with
gridView = new SafeDataGridView()
private SafeDataGridView portos_online;
portos_online = new SafeDataGridView();
I hope this will solve your problem. Have a nice day!
Same question here. Use Invoke method
if (gridView.InvokeRequired)
gridView.Invoke(new MethodInvoker(() => gridView.DataSource = YOUR_DATASOURCE));
else
gridView.DataSource = YOUR_DATASOURCE;