Click here to Skip to main content
15,890,947 members
Home / Discussions / C#
   

C#

 
AnswerRe: Using C++.net Interfaces in C# Pin
TJoe25-Sep-07 9:34
TJoe25-Sep-07 9:34 
GeneralRe: Using C++.net Interfaces in C# Pin
Sandeep Datta25-Sep-07 19:56
Sandeep Datta25-Sep-07 19:56 
QuestionHow add rows and column into DataTable Pin
That's Aragon22-Sep-07 0:52
That's Aragon22-Sep-07 0:52 
AnswerRe: How add rows and column into DataTable Pin
pmarfleet22-Sep-07 0:59
pmarfleet22-Sep-07 0:59 
GeneralRe: How add rows and column into DataTable [modified] Pin
That's Aragon22-Sep-07 1:18
That's Aragon22-Sep-07 1:18 
GeneralRe: How add rows and column into DataTable Pin
pmarfleet22-Sep-07 1:40
pmarfleet22-Sep-07 1:40 
GeneralRe: How add rows and column into DataTable Pin
That's Aragon22-Sep-07 1:48
That's Aragon22-Sep-07 1:48 
GeneralRe: How add rows and column into DataTable Pin
pmarfleet22-Sep-07 1:54
pmarfleet22-Sep-07 1:54 
You're original code didn't make logical sense and there were undefined variables which prevented it from compiling.

I changed it to the following, which works:

DataTable dt3 = new DataTable();
DataColumn dc1 = new DataColumn("Col_1", System.Type.GetType("System.String"));
DataColumn dc2 = new DataColumn("Col_2", System.Type.GetType("System.String"));
dt3.Columns.Add(dc1);
dt3.Columns.Add(dc2);            
                          
DataRow dr = dt3.NewRow();
dr["Col_1"] = "TOTAL less GST";
dr["Col_2"] = lbl_total_less_GST.Text;
dt3.Rows.Add(dr);
            
dr = dt3.NewRow();
dr["Col_1"] = "GST";
dr["Col_2"] = lbl_GST.Text;
dt3.Rows.Add(dr);

dr = dt3.NewRow();
dr["Col_1"] = "Total";
dr["Col_2"] = lbl_TOTAL.Text;
dt3.Rows.Add(dr);


Paul
GeneralRe: How add rows and column into DataTable Pin
Lutosław22-Sep-07 2:09
Lutosław22-Sep-07 2:09 
Questiondouble vs float in performance Pin
small_programmer22-Sep-07 0:46
small_programmer22-Sep-07 0:46 
AnswerRe: double vs float in performance Pin
Colin Angus Mackay22-Sep-07 1:14
Colin Angus Mackay22-Sep-07 1:14 
GeneralRe: double vs float in performance Pin
small_programmer22-Sep-07 2:10
small_programmer22-Sep-07 2:10 
GeneralRe: double vs float in performance Pin
Paul Conrad22-Sep-07 5:02
professionalPaul Conrad22-Sep-07 5:02 
GeneralRe: double vs float in performance Pin
Luc Pattyn22-Sep-07 5:38
sitebuilderLuc Pattyn22-Sep-07 5:38 
GeneralRe: double vs float in performance Pin
Paul Conrad22-Sep-07 5:42
professionalPaul Conrad22-Sep-07 5:42 
GeneralRe: double vs float in performance Pin
Luc Pattyn27-Sep-07 3:39
sitebuilderLuc Pattyn27-Sep-07 3:39 
GeneralRe: double vs float in performance Pin
Paul Conrad27-Sep-07 4:41
professionalPaul Conrad27-Sep-07 4:41 
AnswerRe: double vs float in performance Pin
Guffa22-Sep-07 5:23
Guffa22-Sep-07 5:23 
AnswerRe: double vs float in performance Pin
Nissim Salomon22-Sep-07 11:03
Nissim Salomon22-Sep-07 11:03 
GeneralRe: double vs float in performance Pin
small_programmer22-Sep-07 20:25
small_programmer22-Sep-07 20:25 
Questionwindows service send xml to web application Pin
adhakshinamoorthy22-Sep-07 0:22
adhakshinamoorthy22-Sep-07 0:22 
QuestionFocusing on a control problem Pin
KeironN22-Sep-07 0:15
KeironN22-Sep-07 0:15 
AnswerRe: Focusing on a control problem Pin
Lutosław22-Sep-07 2:32
Lutosław22-Sep-07 2:32 
GeneralRe: Focusing on a control problem Pin
KeironN24-Sep-07 3:03
KeironN24-Sep-07 3:03 
QuestionExporting text in textboxes to Excel Sheet in C# Pin
iet200021-Sep-07 23:38
iet200021-Sep-07 23:38 

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.