CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2009
    Posts
    1

    Data Binding a label: Unable to create child list error

    I am trying to bind a label to the dataset I have filled through a query. The code to create the data-binding is: lblDescript.DataBindings.Add("Text",myData,"Image_type.ImageDescription"); Here myData is the dataset I have filled in by executing a query, Image_type is one of the tables the query runs on and ImageDescription is a field in it. However when I run this, I am getting a "Unable to create child list for field or property ImageDescription" error. What am I doing wrong in the code?
    The queries are executed on a SQL Server database and I am using Visual Studio 2005

  2. #2
    Join Date
    Dec 2007
    Location
    South Africa
    Posts
    263

    Re: Data Binding a label: Unable to create child list error

    There are many reasons to the Error, when you fill the dataset from the adapter you you might have missed something. Secondly you are doing it the wrong way.

    please post your code from the moment you fill the dataset and where you try to bind the label.

    Thank you
    Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured