I have a DataGridView which I populate with values as soon as they are returned from an Udp-server. When there are only a few values my program works, but if enough values are retrieved that the dialogbox needs to expand outside the dialogbox, the DataGridView freezes.
I’ve created this simple method for populating the DataGrid.
public void populateGrid(string[] data)
{
dataGrid.Rows.Add(data);
}
I’m not exactly sure how or why, but by creating a backgroundworker and invoking a delegate on the DGV I accomplished adding items without the system freezing, and the backgroundworker reaches it’s Completed event.