Click here to Skip to main content
15,905,614 members
Home / Discussions / C#
   

C#

 
GeneralRe: Using assembly information from a different assembly Pin
alleyes28-Jul-10 10:56
professionalalleyes28-Jul-10 10:56 
GeneralRe: Using assembly information from a different assembly Pin
Pete O'Hanlon28-Jul-10 19:24
mvePete O'Hanlon28-Jul-10 19:24 
Questionproblem using dataRelation in dot net Pin
Dhyanga28-Jul-10 4:17
Dhyanga28-Jul-10 4:17 
AnswerRe: problem using dataRelation in dot net Pin
freakyit28-Jul-10 4:26
freakyit28-Jul-10 4:26 
GeneralRe: problem using dataRelation in dot net Pin
Dhyanga28-Jul-10 4:28
Dhyanga28-Jul-10 4:28 
GeneralRe: problem using dataRelation in dot net Pin
freakyit28-Jul-10 4:30
freakyit28-Jul-10 4:30 
GeneralRe: problem using dataRelation in dot net Pin
Dhyanga28-Jul-10 4:34
Dhyanga28-Jul-10 4:34 
GeneralRe: problem using dataRelation in dot net Pin
Eddy Vluggen28-Jul-10 5:03
professionalEddy Vluggen28-Jul-10 5:03 
GeneralRe: problem using dataRelation in dot net Pin
Eddy Vluggen28-Jul-10 5:13
professionalEddy Vluggen28-Jul-10 5:13 
GeneralRe: problem using dataRelation in dot net Pin
Dhyanga28-Jul-10 5:38
Dhyanga28-Jul-10 5:38 
AnswerRe: problem using dataRelation in dot net Pin
Luc Pattyn28-Jul-10 5:00
sitebuilderLuc Pattyn28-Jul-10 5:00 
GeneralRe: problem using dataRelation in dot net Pin
Dhyanga28-Jul-10 5:08
Dhyanga28-Jul-10 5:08 
AnswerRe: problem using dataRelation in dot net Pin
Luc Pattyn28-Jul-10 5:22
sitebuilderLuc Pattyn28-Jul-10 5:22 
GeneralRe: problem using dataRelation in dot net Pin
Richard Blythe28-Jul-10 5:26
Richard Blythe28-Jul-10 5:26 
GeneralRe: problem using dataRelation in dot net Pin
Luc Pattyn28-Jul-10 5:47
sitebuilderLuc Pattyn28-Jul-10 5:47 
GeneralRe: problem using dataRelation in dot net Pin
Dhyanga28-Jul-10 5:27
Dhyanga28-Jul-10 5:27 
GeneralRe: problem using dataRelation in dot net Pin
Richard Blythe28-Jul-10 5:41
Richard Blythe28-Jul-10 5:41 
GeneralRe: problem using dataRelation in dot net Pin
Dhyanga28-Jul-10 5:44
Dhyanga28-Jul-10 5:44 
GeneralRe: problem using dataRelation in dot net Pin
Richard Blythe28-Jul-10 5:54
Richard Blythe28-Jul-10 5:54 
GeneralRe: problem using dataRelation in dot net Pin
Dhyanga28-Jul-10 6:22
Dhyanga28-Jul-10 6:22 
GeneralRe: problem using dataRelation in dot net Pin
Luc Pattyn28-Jul-10 5:44
sitebuilderLuc Pattyn28-Jul-10 5:44 
AnswerRe: problem using dataRelation in dot net PinPopular
Richard Blythe28-Jul-10 5:03
Richard Blythe28-Jul-10 5:03 
System.NullReferenceException is an exception that never lies. You are obviously typing a string in wrong.

To eliminate all possible confusion, try this code:

if (!ds.Tables.Contains("category") || !ds.Tables["category"].Columns.Contains("ID"))
   throw new ArgumentException("The category table or column does not exists!")
//
if (!ds.Tables.Contains("item") || !ds.Tables["item"].Columns.Contains("catID"))
   throw new ArgumentException("The item table or column does not exists!")

DataColumn c1 = ds.Tables["category"].Columns["ID"];Line 
DataColumn c2 = ds.Tables["item"].Columns["catID"];
dRel = new DataRelation("categoryItem", c1, c2);

The mind is like a parachute. It doesn’t work unless it’s open.

GeneralRe: problem using dataRelation in dot net Pin
Dhyanga28-Jul-10 5:23
Dhyanga28-Jul-10 5:23 
GeneralRe: problem using dataRelation in dot net Pin
Richard Blythe28-Jul-10 5:30
Richard Blythe28-Jul-10 5:30 
GeneralRe: problem using dataRelation in dot net Pin
Dhyanga28-Jul-10 5:37
Dhyanga28-Jul-10 5:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.