R
Ralf Hoeppner
I have a form which contains a property of type System.Data.DataSet.
I assign a DataSet to this property at design-time the forms designer.
When I now check the dataSet property in the property browser the
values are there, but they are not serialized into the formcode.
Property:
[Bindable(true),Category("Data"),
TypeConverter("System.Windows.Forms.Design.DataSourceConverter,
System.Design"),DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
public DataSet InputDataSet
{
get
{
return m_inputDS;
}
}
Designer Code:
....
PropertyDescriptor propDS =
TypeDescriptor.GetProperties(myForm)["InputDataSet"];
if (propDS != null)
{
((DataSet)propDS.GetValue(myForm)).Merge(ds);
}
....
I'd really appreciate if someone could help me with that problem.
best regards
Ralf
I assign a DataSet to this property at design-time the forms designer.
When I now check the dataSet property in the property browser the
values are there, but they are not serialized into the formcode.
Property:
[Bindable(true),Category("Data"),
TypeConverter("System.Windows.Forms.Design.DataSourceConverter,
System.Design"),DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
public DataSet InputDataSet
{
get
{
return m_inputDS;
}
}
Designer Code:
....
PropertyDescriptor propDS =
TypeDescriptor.GetProperties(myForm)["InputDataSet"];
if (propDS != null)
{
((DataSet)propDS.GetValue(myForm)).Merge(ds);
}
....
I'd really appreciate if someone could help me with that problem.
best regards
Ralf