Click here to Skip to main content
15,900,110 members
Home / Discussions / C#
   

C#

 
GeneralRe: String iterations .... Pin
Guffa25-Feb-08 1:59
Guffa25-Feb-08 1:59 
GeneralRe: String iterations .... Pin
Malcolm Smart25-Feb-08 4:48
Malcolm Smart25-Feb-08 4:48 
GeneralRe: String iterations .... Pin
engsrini25-Feb-08 12:02
engsrini25-Feb-08 12:02 
Questionhow to determine packet size? Pin
Mahmood Abbasi25-Feb-08 0:36
Mahmood Abbasi25-Feb-08 0:36 
Questiondrag drop with treeview? Pin
avtar11125-Feb-08 0:13
avtar11125-Feb-08 0:13 
AnswerRe: drag drop with treeview? Pin
Stu Richardson25-Feb-08 2:09
Stu Richardson25-Feb-08 2:09 
GeneralRe: drag drop with treeview? Pin
avtar11126-Feb-08 17:16
avtar11126-Feb-08 17:16 
GeneralHelp with RowState and Transactions. Pin
RichardContact-124-Feb-08 23:40
RichardContact-124-Feb-08 23:40 
Hello, I am not certain that it should be behaving this way but I will explain and hopefully someboday will have some insight/help which would be great.

I will throw together a rough example below, We have a transaction contain multiple saves:

Try
{
Save1.Update(dt.Select(null, null, DataViewRowState.Added));
Save2.Update(dt.Select(null, null, DataViewRowState.Added));
Save3.Update(dt.Select(null, null, DataViewRowState.Added));
}
Catch
{
Trans.Rollback();
}

We have logic in the sprocs to ensure that no invalid data is saved, if Save1 completes the RowState is changed from added to unchanged. However if Save2 then throws an exception the try..catch rolls the transaction back however the Row in Save1 remains with a RowState of unchanged and so that row will not be persisted to the database once the invalid data is corrected and save is called again.

I would have expected the RowState to return to Added if the transaction is rolled back. Has anybody experienced this before? Is this what you would expect?

Thank you for any help or insight, it will be greatly appreciated.
Generalrefreshing a form on closing of another form Pin
Miss Maheshwari24-Feb-08 23:36
Miss Maheshwari24-Feb-08 23:36 
GeneralRe: refreshing a form on closing of another form Pin
Harvey Saayman25-Feb-08 0:04
Harvey Saayman25-Feb-08 0:04 
GeneralRe: refreshing a form on closing of another form Pin
Miss Maheshwari25-Feb-08 17:18
Miss Maheshwari25-Feb-08 17:18 
GeneralRe: refreshing a form on closing of another form Pin
Harvey Saayman25-Feb-08 19:02
Harvey Saayman25-Feb-08 19:02 
NewsGood Tip for C# Threading in Windows Service Pin
Malcolm Smart24-Feb-08 23:35
Malcolm Smart24-Feb-08 23:35 
QuestionRedefine module in assembly Pin
Maruf Maniruzzaman24-Feb-08 23:29
Maruf Maniruzzaman24-Feb-08 23:29 
GeneralRe: Redefine module in assembly Pin
Christian Graus24-Feb-08 23:38
protectorChristian Graus24-Feb-08 23:38 
JokeRe: Redefine module in assembly Pin
Maruf Maniruzzaman25-Feb-08 0:12
Maruf Maniruzzaman25-Feb-08 0:12 
GeneralRe: Redefine module in assembly Pin
Pete O'Hanlon25-Feb-08 1:49
mvePete O'Hanlon25-Feb-08 1:49 
GeneralCopy text from control Pin
D i x y24-Feb-08 22:56
D i x y24-Feb-08 22:56 
GeneralRe: Copy text from control Pin
Arjun Marwaha25-Feb-08 1:04
Arjun Marwaha25-Feb-08 1:04 
GeneralRe: Copy text from control Pin
D i x y25-Feb-08 1:45
D i x y25-Feb-08 1:45 
GeneralRe: Copy text from control Pin
Subrat Ranjan Pal25-Feb-08 1:16
Subrat Ranjan Pal25-Feb-08 1:16 
GeneralHelp Graph Excel Pin
JeremH24-Feb-08 22:52
JeremH24-Feb-08 22:52 
Generalregarding the memory handling Pin
karthikeyan198324-Feb-08 22:39
karthikeyan198324-Feb-08 22:39 
GeneralRe: regarding the memory handling Pin
N a v a n e e t h24-Feb-08 22:45
N a v a n e e t h24-Feb-08 22:45 
GeneralRe: regarding the memory handling Pin
karthikeyan198324-Feb-08 23:08
karthikeyan198324-Feb-08 23:08 

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.