Please note image and code where the following Invalidoperationexception error occurs:
Rows collection cannot be programmatically cleared when the DataGridView control is data-bound to anything else than an IBindingList that supports change notification and allows deletion.
at line item: dgvLogger.Rows.Clear();
All I'm doing is after one minute's time, take my datagrid on a form and clear its records to reinsert logging information from SQL Server. How may I change the syntax to allow for the rows to be clear in the datagrid?
I understand that according to the following URL -
... I may need to use BindingList instead of ArrayList but having trouble with what that means? Any translation is much appreciated!
This question is a continuance from another question...http://www.experts-exchange.com/Programming/Languages/C_Sharp/Q_27020663.html#a35754950
public partial class frmMain : Form
private void frmMain_Load(object sender, EventArgs e)
this.FormClosed += new FormClosedEventHandler(frmMain_FormClosed);
SQLDataCheckerThread = new Thread(new ThreadStart(CheckForNewData));
if (People_Logged_In() == true)
Form.ActiveForm.Visible = true;
// Form.ActiveForm.Visible = false;