Click here to Skip to main content
16,007,843 members
Home / Discussions / C#
   

C#

 
GeneralRe: Multi Lines Outgoing Calls Pin
felipeserra24-Feb-12 6:42
felipeserra24-Feb-12 6:42 
GeneralRe: Multi Lines Outgoing Calls Pin
Dave Kreskowiak24-Feb-12 9:13
mveDave Kreskowiak24-Feb-12 9:13 
QuestionValidation with Enterprise Library & WPF Pin
gegonzalez15-Feb-12 8:34
gegonzalez15-Feb-12 8:34 
QuestionOne PaintBackground Method for most Classes / Objects ? Pin
Thomas von Smolinski15-Feb-12 8:13
Thomas von Smolinski15-Feb-12 8:13 
AnswerRe: One PaintBackground Method for most Classes / Objects ? Pin
Richard Andrew x6415-Feb-12 12:38
professionalRichard Andrew x6415-Feb-12 12:38 
AnswerRe: One PaintBackground Method for most Classes / Objects ? Pin
Luc Pattyn15-Feb-12 13:16
sitebuilderLuc Pattyn15-Feb-12 13:16 
AnswerRe: One PaintBackground Method for most Classes / Objects ? Pin
BobJanova15-Feb-12 22:22
BobJanova15-Feb-12 22:22 
QuestionSQLCommandBuilder not working Pin
kruegs3515-Feb-12 6:26
kruegs3515-Feb-12 6:26 
I am trying to use the SQLCommandBuilder to auto-generate the insert command, but I am getting is null. Please tell me what I am doing wrong. I have tried to use just a datatable and a dataset and neither has worked. I am starting with a table that has no records and then copying another table to it. I have tested the table copy and I know that it works. Here is my code:
C#
private void CopyData(DataTable table, string tablename)
        {
            SqlDataAdapter da = new SqlDataAdapter("select * from " + tablename, cLocalConnect);
            SqlCommandBuilder cBuilder = new SqlCommandBuilder(da);
            DataSet ds = new DataSet();
            DataTable dt = new DataTable("table1");
            ds.Tables.Add(dt);

            da.Fill(ds, "table1");

            dt = table.Copy();

            da.Update(ds);
        }

AnswerRe: SQLCommandBuilder not working Pin
jschell15-Feb-12 8:45
jschell15-Feb-12 8:45 
AnswerRe: SQLCommandBuilder not working Pin
Thomas von Smolinski15-Feb-12 8:55
Thomas von Smolinski15-Feb-12 8:55 
GeneralRe: SQLCommandBuilder not working Pin
kruegs3515-Feb-12 9:22
kruegs3515-Feb-12 9:22 
GeneralRe: SQLCommandBuilder not working Pin
Shameel15-Feb-12 17:29
professionalShameel15-Feb-12 17:29 
AnswerRe: SQLCommandBuilder not working Pin
kruegs3515-Feb-12 9:35
kruegs3515-Feb-12 9:35 
Questioncrystal report Pin
sachin rathi15-Feb-12 3:04
sachin rathi15-Feb-12 3:04 
AnswerRe: crystal report Pin
Pete O'Hanlon15-Feb-12 5:54
mvePete O'Hanlon15-Feb-12 5:54 
AnswerRe: crystal report Pin
thatraja15-Feb-12 19:21
professionalthatraja15-Feb-12 19:21 
QuestionConsole Application In C# For Fetching Data From Live Website Pin
Muhammad Anwar Ul Haq Islam15-Feb-12 2:41
Muhammad Anwar Ul Haq Islam15-Feb-12 2:41 
QuestionDrawing Text on Panel Pin
Danzy8315-Feb-12 0:39
Danzy8315-Feb-12 0:39 
AnswerRe: Drawing Text on Panel Pin
Pete O'Hanlon15-Feb-12 1:14
mvePete O'Hanlon15-Feb-12 1:14 
GeneralRe: Drawing Text on Panel Pin
Danzy8315-Feb-12 2:05
Danzy8315-Feb-12 2:05 
GeneralRe: Drawing Text on Panel Pin
Dave Kreskowiak15-Feb-12 3:55
mveDave Kreskowiak15-Feb-12 3:55 
AnswerRe: Drawing Text on Panel Pin
Wayne Gaylard15-Feb-12 1:22
professionalWayne Gaylard15-Feb-12 1:22 
AnswerRe: Drawing Text on Panel Pin
BobJanova15-Feb-12 2:02
BobJanova15-Feb-12 2:02 
GeneralRe: Drawing Text on Panel Pin
Danzy8315-Feb-12 2:10
Danzy8315-Feb-12 2:10 
GeneralRe: Drawing Text on Panel Pin
Pete O'Hanlon15-Feb-12 2:25
mvePete O'Hanlon15-Feb-12 2:25 

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.