Click here to Skip to main content
15,913,361 members
Home / Discussions / C#
   

C#

 
AnswerRe: Help in Passing value from child form to parent form Pin
Zeeshan Riaz1-Jun-08 10:01
Zeeshan Riaz1-Jun-08 10:01 
QuestionHow to find USB Pen card is connected or not Pin
Bhim Prakash Singh31-May-08 0:42
Bhim Prakash Singh31-May-08 0:42 
AnswerRe: How to find USB Pen card is connected or not Pin
Christian Graus31-May-08 1:17
protectorChristian Graus31-May-08 1:17 
GeneralRe: How to find USB Pen card is connected or not Pin
Bert delaVega1-Jun-08 9:52
Bert delaVega1-Jun-08 9:52 
QuestionSomething wrong with "ItemArray.CopyTo()" [modified] Pin
dealon31-May-08 0:38
dealon31-May-08 0:38 
AnswerRe: Something wrong with "ItemArray.CopyTo()" Pin
Christian Graus31-May-08 1:18
protectorChristian Graus31-May-08 1:18 
GeneralRe: Something wrong with "ItemArray.CopyTo()" Pin
dealon31-May-08 4:21
dealon31-May-08 4:21 
AnswerRe: Something wrong with "ItemArray.CopyTo()" Pin
Guffa31-May-08 3:35
Guffa31-May-08 3:35 
dealon wrote:
// this code work perfectly
object[] obj = new object[dr.ItemArray.Length];
dr.(obj, 0);


That won't even compile.

dealon wrote:
// why this code can't work?
//drNew.ItemArray = new object[dr.ItemArray.Length];
//dr.ItemArray.CopyTo(drNew.ItemArray, 0);
//dtDest.Rows.Add(drNew);


The ItemArray property returns a new object array that contains references to the data in the data row. You are copying the data to this array, and then you are throwing it away. Replacing the references in the object array doesn't change the data in the data row.

Despite everything, the person most likely to be fooling you next is yourself.

GeneralRe: Something wrong with "ItemArray.CopyTo()" Pin
dealon31-May-08 4:34
dealon31-May-08 4:34 
AnswerRe: Something wrong with "ItemArray.CopyTo()" Pin
Guffa31-May-08 7:31
Guffa31-May-08 7:31 
GeneralRe: Something wrong with "ItemArray.CopyTo()" Pin
dealon31-May-08 20:00
dealon31-May-08 20:00 
QuestionHow to resolve this ERROR? Pin
DeepOceans31-May-08 0:30
DeepOceans31-May-08 0:30 
AnswerRe: How to resolve this ERROR? Pin
Arjun Marwaha31-May-08 1:11
Arjun Marwaha31-May-08 1:11 
QuestionError :: A generic error occurred in GDI+ Pin
Sun Rays30-May-08 23:21
Sun Rays30-May-08 23:21 
AnswerRe: Error :: A generic error occurred in GDI+ Pin
Christian Graus31-May-08 1:20
protectorChristian Graus31-May-08 1:20 
Questionadding numeric strings ? Pin
Mr.Kode30-May-08 21:18
Mr.Kode30-May-08 21:18 
AnswerRe: adding numeric strings ? Pin
Guffa30-May-08 22:07
Guffa30-May-08 22:07 
JokeRe: adding numeric strings ? Pin
Brady Kelly31-May-08 4:28
Brady Kelly31-May-08 4:28 
AnswerRe: adding numeric strings ? Pin
PIEBALDconsult1-Jun-08 5:16
mvePIEBALDconsult1-Jun-08 5:16 
QuestionA question on the "using" statement Pin
William Ten Broek30-May-08 20:16
William Ten Broek30-May-08 20:16 
AnswerRe: A question on the "using" statement Pin
MarkB77730-May-08 20:38
MarkB77730-May-08 20:38 
AnswerRe: A question on the "using" statement Pin
Zoltan Balazs31-May-08 0:10
Zoltan Balazs31-May-08 0:10 
Question{"Incorrect syntax near the keyword 'TRIGGER'."} Pin
Member 400849230-May-08 19:59
Member 400849230-May-08 19:59 
AnswerRe: {"Incorrect syntax near the keyword 'TRIGGER'."} Pin
Guffa30-May-08 22:17
Guffa30-May-08 22:17 
QuestionHow do you use SocketOptionName.BlockSource Pin
Zig15830-May-08 17:34
Zig15830-May-08 17:34 

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.