Click here to Skip to main content
15,891,513 members
Home / Discussions / C#
   

C#

 
QuestionVista-izing my c# 2 app Pin
Jon Hulatt3-May-07 3:56
Jon Hulatt3-May-07 3:56 
AnswerRe: Vista-izing my c# 2 app Pin
Scott Dorman3-May-07 4:59
professionalScott Dorman3-May-07 4:59 
AnswerRe: Vista-izing my c# 2 app Pin
Daniel Grunwald3-May-07 8:35
Daniel Grunwald3-May-07 8:35 
QuestionCopy bitmap to OpenOffice writer via clipboard Pin
frozenpondlife3-May-07 3:28
frozenpondlife3-May-07 3:28 
QuestionCheck 2 rows in different tables Pin
Herman<T>.Instance3-May-07 3:07
Herman<T>.Instance3-May-07 3:07 
AnswerRe: Check 2 rows in different tables Pin
Arun.Immanuel3-May-07 3:28
Arun.Immanuel3-May-07 3:28 
GeneralRe: Check 2 rows in different tables Pin
Herman<T>.Instance3-May-07 23:22
Herman<T>.Instance3-May-07 23:22 
AnswerRe: Check 2 rows in different tables Pin
AFSEKI7-May-07 4:50
AFSEKI7-May-07 4:50 
Why do you want to check one table on "both" systems row by row? You then do and extra, non-logical row checkup for the rows on their own table Wink | ;) I assume you want to check if the rows of a table in databaseFirst exist in a table in databaseSecond.

1) Execute select * from 1st table and store the result in a DataTable
2) Execute select * from 2nd table and store the result in a DataTable
3) You should compare the values of each row manually or wrap the DataRow object in your own implementation where you override Object.Equals and Object.GetHashCode() methods where you compare specific values ( row[column1], row[column2]...e.t.c.)
4) For value types: != compares values BUT
For reference types like DataRow, it compares the reference (memory address) which is in your case always different because you are already comparing DataRows in different tables.

Hope this helps,

QuestionBad Request! Pin
Sabry19053-May-07 2:47
Sabry19053-May-07 2:47 
AnswerRe: Bad Request! Pin
Guffa3-May-07 3:42
Guffa3-May-07 3:42 
GeneralRe: Bad Request! Pin
Sabry19053-May-07 4:32
Sabry19053-May-07 4:32 
AnswerRe: Bad Request! Pin
Stefan Prodan3-May-07 12:22
Stefan Prodan3-May-07 12:22 
GeneralRe: Bad Request! Pin
Sabry19056-May-07 1:24
Sabry19056-May-07 1:24 
Questionintegrate help V2.0 into winforms app Pin
Giorgi Dalakishvili3-May-07 2:36
mentorGiorgi Dalakishvili3-May-07 2:36 
QuestionWindows Services Pin
Sumanta Rout3-May-07 2:28
Sumanta Rout3-May-07 2:28 
AnswerRe: Windows Services Pin
kubben3-May-07 5:07
kubben3-May-07 5:07 
GeneralRe: Windows Services Pin
Sumanta Rout3-May-07 5:40
Sumanta Rout3-May-07 5:40 
GeneralRe: Windows Services Pin
kubben3-May-07 5:41
kubben3-May-07 5:41 
GeneralRe: Windows Services Pin
Sumanta Rout3-May-07 5:44
Sumanta Rout3-May-07 5:44 
GeneralRe: Windows Services Pin
kubben3-May-07 5:45
kubben3-May-07 5:45 
GeneralRe: Windows Services Pin
Sumanta Rout3-May-07 18:41
Sumanta Rout3-May-07 18:41 
GeneralRe: Windows Services Pin
kubben4-May-07 1:49
kubben4-May-07 1:49 
AnswerRe: Windows Services Pin
justintimberlake3-May-07 19:06
justintimberlake3-May-07 19:06 
QuestionUserControl like in TaskPane of MyComputer Pin
freshonlineMax3-May-07 2:21
freshonlineMax3-May-07 2:21 
AnswerRe: UserControl like in TaskPane of MyComputer Pin
freshonlineMax3-May-07 19:55
freshonlineMax3-May-07 19:55 

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.