Hi,
I am using datagridview when, I am assigning datasource to Datagridview i am
gettin exception "Child list for field Region cannot be created."
I am Assigning Collection as a datasource to the datagridview.
AnnotationGrid. DataSource = XMLAnnotations;
AnnotationGrid. DataMember = "Region";
and my grid has three coloumns ID, Area, Text and XMLAnnotation consist xml
like that :
<Annotations MicronsPerPixel ="0.504000">
- <Annotation Id="1326" Name="" ReadOnly="0" Type="4" LineColor="2293 538"
Visible="1" Selected="0" MarkupImagePath ="">
<InputAnnotatio nId>0</InputAnnotation Id>
<Attributes />
- <Regions>
- <RegionAttribut eHeaders>
<AttributeHeade r Id="9999" Name="Region" ColumnWidth="45 " />
<AttributeHeade r Id="9997" Name="Length" ColumnWidth="70 " />
<AttributeHeade r Id="9996" Name="Area" ColumnWidth="70 " />
<AttributeHeade r Id="9998" Name="Text" ColumnWidth="10 0" />
</RegionAttribute Headers>
- <Region Id="1326" Type="1" Zoom="0.000000" Selected="0" ImageLocation=" "
ImageFocus="0.0 00000" Length="244.0" Area="3237.0" LengthMicrons=" 123.0"
AreaMicrons="82 2.2" Text="" NegativeROA="0" >
<Attributes />
- <Vertices>
<Vertex X="23686.000000 " Y="20753.000000 " />
<Vertex X="23769.000000 " Y="20753.000000 " />
<Vertex X="23769.000000 " Y="20792.000000 " />
<Vertex X="23686.000000 " Y="20792.000000 " />
</Vertices>
</Region>
</Regions>
</Annotation>
- <Annotation Id="1328" Name="" ReadOnly="0" Type="4" LineColor="2293 538"
Visible="1" Selected="0" MarkupImagePath ="">
<InputAnnotatio nId>0</InputAnnotation Id>
<Attributes />
- <Regions>
- <RegionAttribut eHeaders>
<AttributeHeade r Id="9999" Name="Region" ColumnWidth="45 " />
<AttributeHeade r Id="9997" Name="Length" ColumnWidth="70 " />
<AttributeHeade r Id="9996" Name="Area" ColumnWidth="70 " />
<AttributeHeade r Id="9998" Name="Text" ColumnWidth="10 0" />
</RegionAttribute Headers>
- <Region Id="1328" Type="1" Zoom="0.000000" Selected="0" ImageLocation=" "
ImageFocus="0.0 00000" Length="166.0" Area="1380.0" LengthMicrons=" 83.7"
AreaMicrons="35 0.5" Text="" NegativeROA="0" >
<Attributes />
- <Vertices>
<Vertex X="23715.000000 " Y="20825.000000 " />
<Vertex X="23738.000000 " Y="20825.000000 " />
<Vertex X="23738.000000 " Y="20885.000000 " />
<Vertex X="23715.000000 " Y="20885.000000 " />
</Vertices>
</Region>
</Regions>
</Annotation>
</Annotations>
I am using datagridview when, I am assigning datasource to Datagridview i am
gettin exception "Child list for field Region cannot be created."
I am Assigning Collection as a datasource to the datagridview.
AnnotationGrid. DataSource = XMLAnnotations;
AnnotationGrid. DataMember = "Region";
and my grid has three coloumns ID, Area, Text and XMLAnnotation consist xml
like that :
<Annotations MicronsPerPixel ="0.504000">
- <Annotation Id="1326" Name="" ReadOnly="0" Type="4" LineColor="2293 538"
Visible="1" Selected="0" MarkupImagePath ="">
<InputAnnotatio nId>0</InputAnnotation Id>
<Attributes />
- <Regions>
- <RegionAttribut eHeaders>
<AttributeHeade r Id="9999" Name="Region" ColumnWidth="45 " />
<AttributeHeade r Id="9997" Name="Length" ColumnWidth="70 " />
<AttributeHeade r Id="9996" Name="Area" ColumnWidth="70 " />
<AttributeHeade r Id="9998" Name="Text" ColumnWidth="10 0" />
</RegionAttribute Headers>
- <Region Id="1326" Type="1" Zoom="0.000000" Selected="0" ImageLocation=" "
ImageFocus="0.0 00000" Length="244.0" Area="3237.0" LengthMicrons=" 123.0"
AreaMicrons="82 2.2" Text="" NegativeROA="0" >
<Attributes />
- <Vertices>
<Vertex X="23686.000000 " Y="20753.000000 " />
<Vertex X="23769.000000 " Y="20753.000000 " />
<Vertex X="23769.000000 " Y="20792.000000 " />
<Vertex X="23686.000000 " Y="20792.000000 " />
</Vertices>
</Region>
</Regions>
</Annotation>
- <Annotation Id="1328" Name="" ReadOnly="0" Type="4" LineColor="2293 538"
Visible="1" Selected="0" MarkupImagePath ="">
<InputAnnotatio nId>0</InputAnnotation Id>
<Attributes />
- <Regions>
- <RegionAttribut eHeaders>
<AttributeHeade r Id="9999" Name="Region" ColumnWidth="45 " />
<AttributeHeade r Id="9997" Name="Length" ColumnWidth="70 " />
<AttributeHeade r Id="9996" Name="Area" ColumnWidth="70 " />
<AttributeHeade r Id="9998" Name="Text" ColumnWidth="10 0" />
</RegionAttribute Headers>
- <Region Id="1328" Type="1" Zoom="0.000000" Selected="0" ImageLocation=" "
ImageFocus="0.0 00000" Length="166.0" Area="1380.0" LengthMicrons=" 83.7"
AreaMicrons="35 0.5" Text="" NegativeROA="0" >
<Attributes />
- <Vertices>
<Vertex X="23715.000000 " Y="20825.000000 " />
<Vertex X="23738.000000 " Y="20825.000000 " />
<Vertex X="23738.000000 " Y="20885.000000 " />
<Vertex X="23715.000000 " Y="20885.000000 " />
</Vertices>
</Region>
</Regions>
</Annotation>
</Annotations>