Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old July 12th, 2004, 01:40 PM
Registered User
Join Date: Jul 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Nested DataList Problem

I have nested datalists using code provided by multiple boards, which all was the exact same. (Categories and Products example)

My problem is I have an item (category) that doesn't have a relevant item (product) where others do. And I keep getting the following error
"This constraint cannot be enabled as not all values have corresponding parent values. "

So if I where using Categories and Product it would look like this.
Apples Oranges

Hamburger Hotdogs




//There is no products for the Vegis and Dairy so it throws the error mentioned above.

Is there a good way to handle this?

Daniel A. Miller

Similar Threads
Thread Thread Starter Forum Replies Last Post
Nested datalist arijoy ASP.NET 1.0 and 1.1 Professional 0 December 6th, 2006 01:23 PM
hyperlink in nested datalist debjanib ASP.NET 1.0 and 1.1 Professional 3 June 5th, 2006 02:17 PM
hyperlink in nested datalist calling a repeater debjanib C# 1 May 25th, 2006 08:17 AM
Using Javascript in Nested Datalist savan_thakkar ASP.NET 1.0 and 1.1 Professional 0 March 21st, 2006 05:54 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.