PC Review


Reply
Thread Tools Rate Thread

DataGridView:Child list for field Region cannot be created.

 
 
Atul Rane
Guest
Posts: n/a
 
      14th Oct 2008
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="2293538"
Visible="1" Selected="0" MarkupImagePath="">
<InputAnnotationId>0</InputAnnotationId>
<Attributes />
- <Regions>
- <RegionAttributeHeaders>
<AttributeHeader Id="9999" Name="Region" ColumnWidth="45" />
<AttributeHeader Id="9997" Name="Length" ColumnWidth="70" />
<AttributeHeader Id="9996" Name="Area" ColumnWidth="70" />
<AttributeHeader Id="9998" Name="Text" ColumnWidth="100" />
</RegionAttributeHeaders>
- <Region Id="1326" Type="1" Zoom="0.000000" Selected="0" ImageLocation=""
ImageFocus="0.000000" Length="244.0" Area="3237.0" LengthMicrons="123.0"
AreaMicrons="822.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="2293538"
Visible="1" Selected="0" MarkupImagePath="">
<InputAnnotationId>0</InputAnnotationId>
<Attributes />
- <Regions>
- <RegionAttributeHeaders>
<AttributeHeader Id="9999" Name="Region" ColumnWidth="45" />
<AttributeHeader Id="9997" Name="Length" ColumnWidth="70" />
<AttributeHeader Id="9996" Name="Area" ColumnWidth="70" />
<AttributeHeader Id="9998" Name="Text" ColumnWidth="100" />
</RegionAttributeHeaders>
- <Region Id="1328" Type="1" Zoom="0.000000" Selected="0" ImageLocation=""
ImageFocus="0.000000" Length="166.0" Area="1380.0" LengthMicrons="83.7"
AreaMicrons="350.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>
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Settings invisible field values for user created rows in DataGridView Sin Jeong-hun Microsoft C# .NET 5 10th Mar 2008 03:22 PM
Q: Child list for field x cannot be created. Martin Arvidsson, Visual Systems AB Microsoft C# .NET 1 10th May 2007 05:28 PM
How to make a field created a part of the Pivot Table Field List? =?Utf-8?B?ZHJoZWxs?= Microsoft Excel Misc 0 29th Jan 2007 11:13 PM
Child list for field owner-info cannot be created =?Utf-8?B?bm9ybWI=?= Microsoft C# .NET 4 11th Nov 2006 08:47 PM
Data Adapter error msg: Can't create child list from field <name> JT Microsoft ADO .NET 0 3rd Sep 2003 07:18 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:45 AM.