Click here to Skip to main content
15,895,283 members
Home / Discussions / C#
   

C#

 
Generaladd bullets in MS Word with c# Pin
helenaz4-Aug-05 9:06
helenaz4-Aug-05 9:06 
GeneralCurrentCell - Tab Please Help Pin
zaboboa4-Aug-05 8:55
zaboboa4-Aug-05 8:55 
GeneralLockBits and 8bpp color table Pin
s2l4-Aug-05 8:32
s2l4-Aug-05 8:32 
GeneralTreeView events are lose when a TreeNode in any level is deleted Pin
Daniel MATHESIS MX4-Aug-05 8:06
sussDaniel MATHESIS MX4-Aug-05 8:06 
GeneralForcing an event Pin
zaboboa4-Aug-05 7:35
zaboboa4-Aug-05 7:35 
GeneralRe: Forcing an event Pin
Turtle Hand4-Aug-05 9:18
Turtle Hand4-Aug-05 9:18 
General.NET Audio Library Pin
James Spibey4-Aug-05 7:08
James Spibey4-Aug-05 7:08 
GeneralError when read a related deleted row Pin
Ming Luo4-Aug-05 6:50
Ming Luo4-Aug-05 6:50 
Hello everyone.
It's similiar problem as the last thread I pasted.
Two tables invoice and order_details are related, invoice_no is the foreign key of the order_details table. When I delete an invoice, the corresponding order_details record will be deleted automatically because the delete rule is cascade. Then if I try to loop a field say "type" in order_details table like:
foreach(DataRow row in ds.Table["Order_Details"].Rows)
{
row["type"]....
}

an error happens which says "Can't access the deleted rows. Dynamic SQL generation for the delete command is not supported against a selectcommand that doesn't return any key column information".
I try to use like
ds.Table["Order_Details"].AcceptChanges();
or write the chances back to the database. But it still doesn't work.
I think it may have some concurrency problem, does anybody know how to solve the problem please???


Asura
GeneralError in relational database. Please Help! Pin
Ming Luo4-Aug-05 6:43
Ming Luo4-Aug-05 6:43 
Generalobject reference problem Pin
ppp0014-Aug-05 6:17
ppp0014-Aug-05 6:17 
GeneralRe: object reference problem Pin
Guffa4-Aug-05 8:47
Guffa4-Aug-05 8:47 
Generalram memory pocket pc Pin
Anonymous4-Aug-05 6:14
Anonymous4-Aug-05 6:14 
General.NET Logging Framework (database) Pin
pankazmittal4-Aug-05 6:13
pankazmittal4-Aug-05 6:13 
GeneralRe: .NET Logging Framework (database) Pin
Dave Kreskowiak4-Aug-05 6:28
mveDave Kreskowiak4-Aug-05 6:28 
GeneralRe: .NET Logging Framework (database) Pin
Steve Maier4-Aug-05 6:42
professionalSteve Maier4-Aug-05 6:42 
GeneralMatch percentage between two string Pin
Member 17237104-Aug-05 5:50
Member 17237104-Aug-05 5:50 
GeneralRe: Match percentage between two string Pin
Dave Kreskowiak4-Aug-05 6:24
mveDave Kreskowiak4-Aug-05 6:24 
GeneralRe: Match percentage between two string Pin
Patric_J5-Aug-05 5:23
Patric_J5-Aug-05 5:23 
GeneralMDI Form Toggling Using Custom Buttons Pin
lpointer4-Aug-05 5:06
lpointer4-Aug-05 5:06 
GeneralRe: MDI Form Toggling Using Custom Buttons Pin
Luis Alonso Ramos4-Aug-05 5:46
Luis Alonso Ramos4-Aug-05 5:46 
GeneralDropDownList comboBoxes Pin
patgo4-Aug-05 4:14
patgo4-Aug-05 4:14 
GeneralRe: DropDownList comboBoxes Pin
mav.northwind4-Aug-05 5:30
mav.northwind4-Aug-05 5:30 
GeneralRe: DropDownList comboBoxes Pin
patgo5-Aug-05 2:30
patgo5-Aug-05 2:30 
Generalindex of a Row Pin
zaboboa4-Aug-05 4:07
zaboboa4-Aug-05 4:07 
GeneralRe: index of a Row Pin
Guffa4-Aug-05 4:38
Guffa4-Aug-05 4: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.