Deisgn-time error – DataSource property on BindingSource

Today I have beed cursing VS2005 for it’s stupidity and lack of error descriptions, it showed me a very informative message box: An unexpected error has occured. Object reference not set to an instance of an object. … they could added a nice icon of „the finger”. I tryed to …

System.IndexOutOfRangeException: Index -1 does not have a value

I had encountered a strange error in my winforms .NET application, when I entered a form and clicked a GridView bound to a IList<T> collection: System.IndexOutOfRangeException: Index -1 does not have a value. at System.Windows.Forms.CurrencyManager.get_Item(Int32 index) at System.Windows.Forms.CurrencyManager.get_Current() at System.Windows.Forms.DataGridView.DataGridViewDataConnection.OnRowEnter(DataGridViewCellEventArgs e) at System.Windows.Forms.DataGridView.OnRowEnter(DataGridViewCell& dataGridViewCell, Int32 columnIndex, Int32 rowIndex, Boolean canCreateNewRow, …

Back to Top