Click here to Skip to main content
15,906,455 members
Home / Discussions / C#
   

C#

 
AnswerRe: Sending mail with attachment (Bitmap) from MemoryStream don't work Pin
Jacob Dixon25-May-09 7:01
Jacob Dixon25-May-09 7:01 
AnswerRe: Sending mail with attachment (Bitmap) from MemoryStream don't work Pin
Luc Pattyn25-May-09 7:12
sitebuilderLuc Pattyn25-May-09 7:12 
GeneralRe: Sending mail with attachment (Bitmap) from MemoryStream don't work Pin
thirstyhunter25-May-09 9:04
thirstyhunter25-May-09 9:04 
GeneralRe: Sending mail with attachment (Bitmap) from MemoryStream don't work Pin
Luc Pattyn25-May-09 9:20
sitebuilderLuc Pattyn25-May-09 9:20 
GeneralRe: Sending mail with attachment (Bitmap) from MemoryStream don't work Pin
thirstyhunter25-May-09 9:36
thirstyhunter25-May-09 9:36 
GeneralRe: Sending mail with attachment (Bitmap) from MemoryStream don't work Pin
Luc Pattyn25-May-09 9:38
sitebuilderLuc Pattyn25-May-09 9:38 
GeneralRe: Sending mail with attachment (Bitmap) from MemoryStream don't work Pin
thirstyhunter25-May-09 9:52
thirstyhunter25-May-09 9:52 
GeneralRe: Sending mail with attachment (Bitmap) from MemoryStream don't work Pin
nancydotcom22-Jun-10 8:28
nancydotcom22-Jun-10 8:28 
QuestionReports every Monday at 7am. Pin
Jacob Dixon25-May-09 6:38
Jacob Dixon25-May-09 6:38 
AnswerRe: Reports every Monday at 7am. Pin
dan!sh 25-May-09 7:17
professional dan!sh 25-May-09 7:17 
GeneralRe: Reports every Monday at 7am. Pin
Jacob Dixon25-May-09 7:30
Jacob Dixon25-May-09 7:30 
GeneralRe: Reports every Monday at 7am. Pin
Luc Pattyn25-May-09 7:37
sitebuilderLuc Pattyn25-May-09 7:37 
GeneralRe: Reports every Monday at 7am. Pin
Le centriste28-May-09 8:33
Le centriste28-May-09 8:33 
GeneralRe: Reports every Monday at 7am. Pin
Jacob Dixon25-May-09 15:20
Jacob Dixon25-May-09 15:20 
AnswerRe: Reports every Monday at 7am. Pin
Le centriste25-May-09 7:18
Le centriste25-May-09 7:18 
AnswerRe: Reports every Monday at 7am. Pin
_Maxxx_25-May-09 12:27
professional_Maxxx_25-May-09 12:27 
GeneralRe: Reports every Monday at 7am. Pin
Jacob Dixon25-May-09 15:26
Jacob Dixon25-May-09 15:26 
AnswerRe: Reports every Monday at 7am. Pin
Jacob Dixon25-May-09 15:36
Jacob Dixon25-May-09 15:36 
GeneralRe: Reports every Monday at 7am. Pin
_Maxxx_25-May-09 19:05
professional_Maxxx_25-May-09 19:05 
QuestionPop ContextMenu on NotifyIcon without mouse activity Pin
jackgeek25-May-09 5:58
jackgeek25-May-09 5:58 
QuestionRe: Pop ContextMenu on NotifyIcon without mouse activity Pin
jackgeek29-May-09 12:23
jackgeek29-May-09 12:23 
QuestionNeed help with TableAdapter problem [modified] Pin
kensai25-May-09 5:01
kensai25-May-09 5:01 
Solved: I realized I'm a huge dummy and forgot a transaction I wrapped around delete operation. Turns out I forgot to add a trans.Complete() at the end of it. I added it and problem solved.

I have a typed DataSet mapping a local SQL Server CE 3.5 .sdf file using DataGridView on a WinForm. I can successfully add and modify data but for some reason I can't delete any. I don't get any errors either. Can you please give me any ideas about what could be wrong? I can't figure this out and I'd appreciate any help.

I use simple methods like this:

fill
myTableTableAdapter.Fill(myDataSet.MyTable);


add
(after adding new row to grid also to bindingsource)
myTableTableAdapter.Update(myDataSet.MyTable);


delete
myDataSet.MyTableRow row = myDataSet.MyTable.FindByID(id);
row.Delete();
myTableTableAdapter.Update(myDataSet.MyTable);


The row is gone from gridview. I also check myDataSet.MyTable parameter in myTableTableAdapter.Update(myDataSet.MyTable) using debug visualizer, it's is gone from there too (row status: Deleted). But when I refill data from database, it's back like nothing happend..

I checked DeleteCommand of the myTableTableAdapter, it is defined and correct.

I don't copy project database file over the newer build file either.

I wrote a simple log to see the rowstatus of the row. Everything seems to work as it should but still the row comes back after a db refill:

Log: row status: Unchanged
Log: calling row.Delete()
Log: row status: Deleted
Log: entering Update() function
Log: row status: Deleted
Log: calling tableAdapter.Update(dataset.Table)
Log: row status: row not found in dataset


Any ideas?

modified on Tuesday, May 26, 2009 6:12 AM

AnswerRe: Need help with TableAdapter problem Pin
Fahad Sadah25-May-09 7:28
Fahad Sadah25-May-09 7:28 
GeneralRe: Need help with TableAdapter problem Pin
kensai25-May-09 23:48
kensai25-May-09 23:48 
AnswerRe: Need help with TableAdapter problem Pin
kensai26-May-09 0:13
kensai26-May-09 0:13 

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.