Click here to Skip to main content
16,012,468 members
Home / Discussions / C#
   

C#

 
GeneralRe: Microsoft SQLHelper.cs class parameter issue Pin
leckey26-Jun-06 11:11
leckey26-Jun-06 11:11 
GeneralRe: Microsoft SQLHelper.cs class parameter issue Pin
Josh Smith26-Jun-06 11:15
Josh Smith26-Jun-06 11:15 
AnswerRe: Microsoft SQLHelper.cs class parameter issue Pin
Michael P Butler26-Jun-06 10:45
Michael P Butler26-Jun-06 10:45 
GeneralRe: Microsoft SQLHelper.cs class parameter issue Pin
Josh Smith26-Jun-06 10:48
Josh Smith26-Jun-06 10:48 
GeneralRe: Microsoft SQLHelper.cs class parameter issue Pin
leckey26-Jun-06 10:50
leckey26-Jun-06 10:50 
GeneralRe: Microsoft SQLHelper.cs class parameter issue Pin
Josh Smith26-Jun-06 10:57
Josh Smith26-Jun-06 10:57 
GeneralRe: Microsoft SQLHelper.cs class parameter issue Pin
leckey26-Jun-06 11:01
leckey26-Jun-06 11:01 
GeneralRe: Microsoft SQLHelper.cs class parameter issue Pin
Michael P Butler26-Jun-06 11:22
Michael P Butler26-Jun-06 11:22 
leckey wrote:
row.ItemArray = dt.Rows[0].ItemArray;
row["PartNumber"] = strPartNumberInputReference;


Why are you trying to assign the values of row 0 to the new row?

When there is no data in the table, you won't have a row 0

Can't you just do

row = dt.NewRow();
row["PartNumber"] = strPartNumberInputReference;
dt.Rows.Add(row)


Michael

CP Blog [^] Development Blog [^]

GeneralRe: Microsoft SQLHelper.cs class parameter issue Pin
leckey26-Jun-06 11:37
leckey26-Jun-06 11:37 
GeneralRe: Microsoft SQLHelper.cs class parameter issue Pin
Michael P Butler26-Jun-06 11:51
Michael P Butler26-Jun-06 11:51 
GeneralRe: Microsoft SQLHelper.cs class parameter issue Pin
leckey26-Jun-06 12:02
leckey26-Jun-06 12:02 
GeneralRe: Microsoft SQLHelper.cs class parameter issue Pin
Michael P Butler27-Jun-06 10:03
Michael P Butler27-Jun-06 10:03 
QuestionProcess object being created with null handle. Pin
Dan Neely26-Jun-06 9:15
Dan Neely26-Jun-06 9:15 
AnswerRe: Process object being created with null handle. Pin
mav.northwind26-Jun-06 9:56
mav.northwind26-Jun-06 9:56 
GeneralRe: Process object being created with null handle. [modified] Pin
Dan Neely26-Jun-06 10:24
Dan Neely26-Jun-06 10:24 
GeneralRe: Process object being created with null handle. Pin
Dan Neely26-Jun-06 10:46
Dan Neely26-Jun-06 10:46 
GeneralRe: Process object being created with null handle. Pin
Dan Neely27-Jun-06 2:41
Dan Neely27-Jun-06 2:41 
QuestionTooltip and HelpString text from external file? Pin
jbudenz26-Jun-06 9:06
jbudenz26-Jun-06 9:06 
AnswerRe: Tooltip and HelpString text from external file? Pin
led mike26-Jun-06 10:11
led mike26-Jun-06 10:11 
QuestionRe: Tooltip and HelpString text from external file? [modified] Pin
jbudenz27-Jun-06 4:59
jbudenz27-Jun-06 4:59 
AnswerRe: Tooltip and HelpString text from external file? Pin
led mike27-Jun-06 8:33
led mike27-Jun-06 8:33 
QuestionWMI InvokeMethod and Desktop Interactivity Pin
astonish26-Jun-06 9:01
astonish26-Jun-06 9:01 
QuestionHide application from process list? Pin
CodeLeon26-Jun-06 8:22
CodeLeon26-Jun-06 8:22 
AnswerRe: Hide application from process list? Pin
Not Active26-Jun-06 8:28
mentorNot Active26-Jun-06 8:28 
GeneralRe: Hide application from process list? Pin
Dan Neely26-Jun-06 8:51
Dan Neely26-Jun-06 8:51 

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.