Good day,
i am creating a component, with an enum property for the property grid.
// The DataSources enumeration.
public enum DataSources
{
MSSQL = 0,
MYSQL = 1,
POSTGRESQL = 2,
ORACLE = 3,
DSN = 4,
EXCEL = 5,
ACCESS = 6,
}
private DataSources m_DataSources;
/// <summary>
/// Gets or Sets the datasource property
/// </summary>
/// <returns></returns>
[Description("Sets the type of datasource to connect to")]
[Category("Design")]
[DefaultValue("MSSQL")]
[Browsable(true)]
public DataSources DataSource
{
get { return DataSources; }
set { DataSources= value; }
}
This all works...
I would like to now implement code to enable or disable other properties on the properties grid on a selection made from this property.
ANY help would be greatly appreciated
Thanks.:)