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

C#

 
GeneralRe: How do I draw on a bitmap? Pin
Heath Stewart24-Jan-03 11:37
protectorHeath Stewart24-Jan-03 11:37 
GeneralRe: How do I draw on a bitmap? Pin
MikeBeard25-Jan-03 11:07
MikeBeard25-Jan-03 11:07 
GeneralRe: How do I draw on a bitmap? Pin
Heath Stewart25-Jan-03 11:12
protectorHeath Stewart25-Jan-03 11:12 
GeneralRe: How do I draw on a bitmap? Pin
MikeBeard27-Jan-03 3:44
MikeBeard27-Jan-03 3:44 
AnswerRe: How do I draw on a bitmap? Pin
MikeBeard24-Jan-03 11:25
MikeBeard24-Jan-03 11:25 
GeneralAdding File Type actions Pin
Waleed Zedan24-Jan-03 6:07
Waleed Zedan24-Jan-03 6:07 
Generalsilly gui question/request Pin
bertb24-Jan-03 3:50
bertb24-Jan-03 3:50 
QuestionWhat happens with events if computer is slow. Pin
Zinj24-Jan-03 2:24
sussZinj24-Jan-03 2:24 
AnswerRe: What happens with events if computer is slow. Pin
leppie24-Jan-03 6:16
leppie24-Jan-03 6:16 
GeneralRe: What happens with events if computer is slow. Pin
jinz25-Jan-03 11:40
jinz25-Jan-03 11:40 
GeneralRe: What happens with events if computer is slow. Pin
leppie25-Jan-03 20:30
leppie25-Jan-03 20:30 
GeneralThe mystical power C# Pin
gekoscan24-Jan-03 2:11
gekoscan24-Jan-03 2:11 
GeneralRe: The mystical power C# Pin
Mark Sanders24-Jan-03 3:38
Mark Sanders24-Jan-03 3:38 
GeneralFlicker Free is not the Key Pin
gekoscan24-Jan-03 3:58
gekoscan24-Jan-03 3:58 
GeneralRe: The mystical power C# Pin
Q&A27-Jan-03 23:16
Q&A27-Jan-03 23:16 
Generalreading header informations from avi files Pin
hlandler24-Jan-03 0:24
hlandler24-Jan-03 0:24 
GeneralQuery design UI in C# Pin
hnguyen23-Jan-03 19:24
hnguyen23-Jan-03 19:24 
GeneralRe: Query design UI in C# Pin
leppie24-Jan-03 6:32
leppie24-Jan-03 6:32 
GeneralRe: Query design UI in C# Pin
FruitBatInShades25-Jan-03 13:16
FruitBatInShades25-Jan-03 13:16 
QuestionHow to integrate FLEX with C#? Pin
anjana23-Jan-03 16:39
anjana23-Jan-03 16:39 
GeneralEXE header Pin
Anonymous23-Jan-03 15:23
Anonymous23-Jan-03 15:23 
GeneralRe: EXE header Pin
Heath Stewart23-Jan-03 18:18
protectorHeath Stewart23-Jan-03 18:18 
GeneralRe: EXE header Pin
plextoR24-Jan-03 0:42
plextoR24-Jan-03 0:42 
GeneralRe: EXE header Pin
Heath Stewart24-Jan-03 2:41
protectorHeath Stewart24-Jan-03 2:41 
GeneralC# with database Pin
hkl23-Jan-03 13:36
hkl23-Jan-03 13:36 
Hi,
I am writing a program with a database ( xxxx.mdb), and the data set is displayed on a DataGrid.
I've implemented an Add function to add new record and it's ok.

But I can't delete an existing record. The following code is what I've used.

this.BindingContext[dbProductSet1, "Products"].RemoveAt(this.BindingContext[dbProductSet1, "Products"].Position);

It runs ok, but the record can't be deleted. And, when I later execute:

oleDbDataAdapter1.Update(dbProductSet1);

An error occurs saying: "Update requires a valid DeleteCommand when passed DataRow collection with deleted rows."

Afterward, I added this line and tried again:

dbProductSet1.Products.AcceptChanges();

The error message is gone and it seems ok, but in fact the "deleted" record isn't deleted!!

Can anyone please give me comments?? Thank you!!!


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.