I've created a collection of objects that implement a certain interface. I've then bound a datagrid to this collection, but when I try to edit the collection via the datagrid I get the following exception:
Any ideas why?
Jon
"There are 10 types of people in the world... those who understand binary and those who don't.
Code:
System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: Index was out of range. Must be non-negative and less than the size of the collection.
at System.Collections.CollectionBase.System.Collections.IList.get_Item(Int32 index)
at System.Windows.Forms.CurrencyManager.CancelCurrentEdit()
at System.Windows.Forms.DataGrid.HandleEndCurrentEdit()
at System.Windows.Forms.DataGrid.OnLeave_Grid()
at System.Windows.Forms.DataGrid.OnLeave(EventArgs e)
at System.Windows.Forms.Control.NotifyLeave()
at System.Windows.Forms.ContainerControl.UpdateFocusedControl()
Jon
"There are 10 types of people in the world... those who understand binary and those who don't.