+2009-09-03 Ivan N. Zlatev <contact@i-nz.net>
+
+ * DataColumnPropertyDescriptor.cs, DataView.cs: Not browsable if Hidden.
+ [Fixes the second part of bug #536547]
+
2009-08-25 Veerapuram Varadhan <vvaradhan@novell.com>
** Fixes #521951
private bool readOnly = true;
private Type componentType = null;
private Type propertyType = null;
+ private bool browsable = true;
+
//private PropertyInfo prop = null;
private int columnIndex = 0;
propertyType = type;
}
+ public void SetBrowsable (bool browsable)
+ {
+ this.browsable = browsable;
+ }
+
public override object GetValue (object component)
{
// FIXME: what is the correct way to Get a Value?
}
}
+ public override bool IsBrowsable {
+ get { return browsable && base.IsBrowsable; }
+ }
+
public override Type PropertyType {
get {
return propertyType;
descriptor.SetComponentType (typeof (System.Data.DataRowView));\r
descriptor.SetPropertyType (dataColumn.DataType);\r
descriptor.SetReadOnly (dataColumn.ReadOnly);\r
+ descriptor.SetBrowsable (dataColumn.ColumnMapping != MappingType.Hidden);\r
descriptors [d++] = descriptor;\r
}\r
for (int rel = 0; rel < dataTable.ChildRelations.Count; rel ++) {\r