C#.NET Winforms PropertyGrid reports "Properties Window", "Index was outside the bounds of the array".

You may find when using the PropertyGrid in a C#.NET Winforms application that the PropertyGrid displays an alert with the title "Properties Window" and the message "Index was outside the bounds of the array" when you are editing a collection.



This is a somewhat misleading error as this can occur if you are modifying a Collection<T> where the object



/// <summary>
/// Represents an ODBC data source property.
/// </summary>
[Serializable]
[XmlRoot("Property")]
public abstract class OdbcDataSourceProperty : GlobalSerializableBase, IComparable<OdbcDataSourceProperty>
{


Remove the abstract modifier and the problem will go away.



Comments

Popular posts from this blog

Windows Server 2016, 2019, 2022, Windows 10 and Windows 11: Date and time "Some settings are managed by your organization".

TFTPD32 or TFTPD64 reports Bind error 10013 An attempt was made to access a socket in a way forbidden by its access permissions.

Windows Server 2019 desktop icons such as My Computer, Windows cannot access the specified device, path, or file.