I'm trying to add a new row to the DataGridView.

I keep getting the same error when I try to add a new DataGridViewRow:

An unhandled exception of type 'System.InvalidOperationException' occurred
in System.Windows.Forms.dll
Additional information: Operation is not valid due to the current state of
the object.

I have a custom list that inherits from System.ComponentModel.BindingList<T>
where T is my custom object.
It binds just fine using a BindingSource.

I'm using the ButtonColumn type for this grid and using each row to display
a filename.  So on the click of the button (while on the New Row) I'm
showing the Open File Dialog.  How can I get a new row added without causing
this exception?

I've tried several things but nothing seems to work.  I'm sure I'm just
missing something small.

Thanks,
Mike

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to