Click here to Skip to main content
15,888,802 members
Home / Discussions / C#
   

C#

 
GeneralRe: Owner-Drawn Scrollbars Pin
J. Dunlap13-Jun-03 13:55
J. Dunlap13-Jun-03 13:55 
Generalgui event handling Pin
zuhx13-Jun-03 10:08
zuhx13-Jun-03 10:08 
GeneralRe: gui event handling Pin
Paresh Gheewala13-Jun-03 11:22
Paresh Gheewala13-Jun-03 11:22 
Questiondefault (optional) parameters in a function??? Pin
CherezZaboro13-Jun-03 10:06
CherezZaboro13-Jun-03 10:06 
AnswerRe: default (optional) parameters in a function??? Pin
leppie13-Jun-03 10:50
leppie13-Jun-03 10:50 
GeneralC# Language question for a guru Pin
albean13-Jun-03 9:49
albean13-Jun-03 9:49 
GeneralRe: C# Language question for a guru Pin
J. Dunlap13-Jun-03 10:36
J. Dunlap13-Jun-03 10:36 
GeneralOleDbCommands and OleDbDataAdapter Pin
mindfuck13-Jun-03 4:17
mindfuck13-Jun-03 4:17 
i have some problems storing data in an access-database.
my dataadapter don't want to execute the update()-command
correctly.
i'm creating my commands via OleDbCommandBuilder and the
sql-statements seems correct. only the select-command works
properly. the only difference between the select-command object
and the others is a private attribute called "executequery".
in the select-command that flag is true in the others false.
but i cannot access it!
what is to do?


here's some code:

string sConnString = "provider=Microsoft.JET.OLEDB.4.0; data source = myDatabase.mdb";
string sCmdString = "SELECT * FROM dbTest";

OleDbDataAdapter dataAdapter = new OleDbDataAdapter(sCmdString, sConnString);

OleDbCommandBuilder cb = new OleDbCommandBuilder(dataAdapter);

dataAdapter.UpdateCommand = cb.GetUpdateCommand();
dataAdapter.UpdateCommand.CommandTimeout = 20;
dataAdapter.InsertCommand = cb.GetInsertCommand();
dataAdapter.InsertCommand.CommandTimeout = 20;
dataAdapter.DeleteCommand = cb.GetDeleteCommand();
dataAdapter.DeleteCommand.CommandTimeout = 20;

// that works
table = new DataTable(sTable);
dataAdapter.Fill(table);

// fill the table with some data
// ...

// that one doesn't work
dataAdapter.Update(table);


thanks,
phil
GeneralRe: OleDbCommands and OleDbDataAdapter Pin
Laimis13-Jun-03 5:35
Laimis13-Jun-03 5:35 
GeneralText File Reading Newbie Question Pin
Ricardo Kirkner13-Jun-03 3:45
Ricardo Kirkner13-Jun-03 3:45 
GeneralRe: Text File Reading Newbie Question Pin
Jim Stewart13-Jun-03 5:07
Jim Stewart13-Jun-03 5:07 
GeneralRe: Text File Reading Newbie Question Pin
Ricardo Kirkner13-Jun-03 6:20
Ricardo Kirkner13-Jun-03 6:20 
GeneralRe: Text File Reading Newbie Question Pin
Nick Parker13-Jun-03 8:25
protectorNick Parker13-Jun-03 8:25 
GeneralRe: Text File Reading Newbie Question Pin
dynamic13-Jun-03 15:23
dynamic13-Jun-03 15:23 
GeneralRe: Text File Reading Newbie Question Pin
leppie13-Jun-03 16:31
leppie13-Jun-03 16:31 
GeneralRe: Text File Reading Newbie Question Pin
dynamic13-Jun-03 23:16
dynamic13-Jun-03 23:16 
Questioncomponet for INTERNET EXPLORER programming in .NET? Pin
Asim N.13-Jun-03 3:03
Asim N.13-Jun-03 3:03 
AnswerRe: componet for INTERNET EXPLORER programming in .NET? Pin
Jon Newman14-Jun-03 8:12
Jon Newman14-Jun-03 8:12 
GeneralDouble Buffer - The best way Pin
aeros13-Jun-03 2:46
aeros13-Jun-03 2:46 
GeneralRe: Double Buffer - The best way Pin
James T. Johnson14-Jun-03 3:59
James T. Johnson14-Jun-03 3:59 
GeneralRe: Double Buffer - The best way Pin
Arun Bhalla18-Jun-03 13:41
Arun Bhalla18-Jun-03 13:41 
Questionhow can i handle the column resize event in C# ?? Pin
hard_coder13-Jun-03 2:24
hard_coder13-Jun-03 2:24 
QuestionHow can I prevent listview item checked from double-click? Pin
Vu Truong13-Jun-03 1:30
Vu Truong13-Jun-03 1:30 
AnswerRe: How can I prevent listview item checked from double-click? Pin
dynamic15-Jun-03 22:35
dynamic15-Jun-03 22:35 
GeneralRich Text Box Pin
MojoTheMonkey12-Jun-03 23:30
MojoTheMonkey12-Jun-03 23:30 

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.