Click here to Skip to main content
15,896,207 members
Home / Discussions / C#
   

C#

 
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 
GeneralRe: problem using dataRelation in dot net Pin
Dhyanga28-Jul-10 7:24
Dhyanga28-Jul-10 7:24 
AnswerRe: problem using dataRelation in dot net Pin
Dhyanga29-Jul-10 8:40
Dhyanga29-Jul-10 8:40 
QuestionProblem with Send Keys to background process Pin
Member 372749928-Jul-10 3:54
Member 372749928-Jul-10 3:54 
AnswerRe: Problem with Send Keys to background process Pin
freakyit28-Jul-10 4:17
freakyit28-Jul-10 4:17 
GeneralRe: Problem with Send Keys to background process Pin
Member 372749928-Jul-10 7:21
Member 372749928-Jul-10 7:21 
GeneralRe: Problem with Send Keys to background process Pin
Covean28-Jul-10 22:25
Covean28-Jul-10 22:25 
GeneralRe: Problem with Send Keys to background process Pin
Member 372749929-Jul-10 2:21
Member 372749929-Jul-10 2:21 
GeneralRe: Problem with Send Keys to background process Pin
Covean29-Jul-10 2:52
Covean29-Jul-10 2:52 
General[SOLVED] Re: Problem with Send Keys to background process Pin
Member 372749929-Jul-10 3:33
Member 372749929-Jul-10 3:33 
AnswerRe: Problem with Send Keys to background process Pin
Covean28-Jul-10 4:19
Covean28-Jul-10 4:19 
QuestionShould not end my Application processes via Task Manager Pin
Krishna Varadharajan28-Jul-10 3:04
Krishna Varadharajan28-Jul-10 3:04 
AnswerRe: Should not end my Application processes via Task Manager Pin
PIEBALDconsult28-Jul-10 3:19
mvePIEBALDconsult28-Jul-10 3:19 
AnswerRe: Should not end my Application processes via Task Manager PinPopular
Roger Wright28-Jul-10 3:20
professionalRoger Wright28-Jul-10 3:20 
AnswerRe: Should not end my Application processes via Task Manager PinPopular
Dave Kreskowiak28-Jul-10 3:31
mveDave Kreskowiak28-Jul-10 3:31 

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.