473,765 Members | 2,028 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

DataGridView:Ch ild list for field Region cannot be created.

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>
Oct 14 '08 #1
0 1763

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
4885
by: Greg Burns | last post by:
I cannot hide the first column of my DataGridView. (VS.NET 2005 RC1) If you take a look at the sample from here http://lab.msdn.microsoft.com/vs2005/downloads/101samples/default.aspx Windows Forms->UsingDataGridView example They are hiding the employee ID by setting that column visibility to false, seems simple enough. But I can hide every other column in my own project, just not the first one!
0
1026
by: Jarod | last post by:
Hey I want to bind a List<string> with DataGridView, but when I try to do so I have only Length column. The Length column displays lengths of my strings but where are my strings ? I tried to set DataMember to Item and to many other things but ... Jarod
0
1116
by: Andy | last post by:
I have a DataGridView on my form, but for some reason: I am unable to modify / change any values in the datagrid. I do not have any of the columns set to ReadOnly. What do I need to do to be able to edit a column? I have EditMode set to "EditOnKeystrokeOrF2". The selection for the cell looks like it allows me to type, but none of the keystrokes are picked up and entered in the cell.
1
1644
by: dave | last post by:
Hello: I'm trying to connect "DataGridView" to ".MDB" file from the code: string connectionString = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=C:\\file.MDB"; OleDbConnection connection = new OleDbConnection(connectionString); connection.Open();
2
7822
by: michael sorens | last post by:
I have been trying to figure out how to use DataSets, BindingSources, DataGridViews, and XML together, but it is a challenge. I understand how to populate a DataGridView with XML basically as: DataSet ds = new DataSet(); ds.ReadXml(@"\usr\tmp\sample.xml"); dataGridView.DataSource = ds; dataGridView.DataMember = "targetElement"; What I found through experimentation is that the DataMember may specify
8
26438
by: | last post by:
I am sure this has been asked and answered, but here goes anyway... VS.Net 2005, VB.Net How can you display more than one field in the displaymember property of a combobox inside the datagridview control? I am at a loss. Thanks, David
1
5051
by: romerve | last post by:
Hello; i am having some problems trying to get a form that has a datagridview to refresh after a new record is created. I have a MDI container and menu form and add new record form; the menu form display the data using a data grid view and the add record form creates an object and passes that data to a class method which creates the record using sqlcommand. The add new record form is loaded after the user clicks on the add button on...
2
1208
by: Adrian Soon | last post by:
Hi All, I'm now trying to use the DataGridView Class but i'm nt sure how to allow user to do sorting of data himself. Is there anyway I can code it? as I had my datagridview created in run time. what is the correct way to add the code in? thanks...
4
1636
by: Pieter | last post by:
Hi, I want to bind a proeprty of a child object to a DataGridView, but it doesn't work. For instance: Imagen that I have an object Company, and this object company has a child object Address. Address has a property Street.
0
9568
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10164
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10007
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9959
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8833
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5277
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3926
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3532
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2806
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.