Click here to Skip to main content
15,887,435 members
Home / Discussions / C#
   

C#

 
QuestionGet only modified data at form exit Pin
manchukuo13-Sep-10 8:30
manchukuo13-Sep-10 8:30 
AnswerRe: Get only modified data at form exit Pin
Henry Minute13-Sep-10 9:52
Henry Minute13-Sep-10 9:52 
GeneralRe: Get only modified data at form exit Pin
Luc Pattyn13-Sep-10 10:31
sitebuilderLuc Pattyn13-Sep-10 10:31 
GeneralRe: Get only modified data at form exit Pin
Henry Minute13-Sep-10 12:32
Henry Minute13-Sep-10 12:32 
GeneralRe: Get only modified data at form exit Pin
Luc Pattyn13-Sep-10 13:10
sitebuilderLuc Pattyn13-Sep-10 13:10 
AnswerRe: Get only modified data at form exit Pin
Dave Kreskowiak13-Sep-10 10:21
mveDave Kreskowiak13-Sep-10 10:21 
GeneralRe: Get only modified data at form exit Pin
manchukuo13-Sep-10 10:51
manchukuo13-Sep-10 10:51 
AnswerRe: Get only modified data at form exit Pin
AspDotNetDev13-Sep-10 11:27
protectorAspDotNetDev13-Sep-10 11:27 
manchukuo wrote:
the vest way is to copy the init data in a structure/class for each form right?


That's pretty much the standard. You could also compare it against the last value that was stored in the database, but that pretty much defeats the purpose of avoiding a database call. You can also get a hash of the initial data (e.g., GetHashCode) and compare that to the hash code for the new data (this will minimize the amount of memory used and will be correct most of the time). If you combine that with dirty checking, you will have a pretty good way of minimizing data transfer.

GeneralRe: Get only modified data at form exit Pin
manchukuo13-Sep-10 11:41
manchukuo13-Sep-10 11:41 
Questionreporting issue in c# application Pin
bapu288913-Sep-10 8:12
bapu288913-Sep-10 8:12 
AnswerRe: reporting issue in c# application Pin
bapu288913-Sep-10 20:07
bapu288913-Sep-10 20:07 
Questionhow to send file with bluetooth with secket programing Pin
behzadcp13-Sep-10 3:49
professionalbehzadcp13-Sep-10 3:49 
AnswerRe: how to send file with bluetooth with secket programing Pin
Giorgi Dalakishvili13-Sep-10 20:57
mentorGiorgi Dalakishvili13-Sep-10 20:57 
QuestionA Queston about Transformations Pin
BobInNJ13-Sep-10 3:38
BobInNJ13-Sep-10 3:38 
AnswerRe: A Queston about Transformations Pin
Luc Pattyn13-Sep-10 4:05
sitebuilderLuc Pattyn13-Sep-10 4:05 
QuestionUngroup Excel Column Pin
Mugdha_Aditya13-Sep-10 3:36
Mugdha_Aditya13-Sep-10 3:36 
AnswerRe: Ungroup Excel Column Repost Pin
Richard MacCutchan13-Sep-10 3:45
mveRichard MacCutchan13-Sep-10 3:45 
Questionmark with x Pin
Jassim Rahma13-Sep-10 3:24
Jassim Rahma13-Sep-10 3:24 
AnswerRe: mark with x Pin
Luc Pattyn13-Sep-10 7:03
sitebuilderLuc Pattyn13-Sep-10 7:03 
AnswerRe: mark with x Pin
Eddy Vluggen13-Sep-10 9:56
professionalEddy Vluggen13-Sep-10 9:56 
Questionlogs window with a lot of lines Pin
IWannaTalk13-Sep-10 1:56
IWannaTalk13-Sep-10 1:56 
AnswerRe: logs window with a lot of lines Pin
Luc Pattyn13-Sep-10 2:25
sitebuilderLuc Pattyn13-Sep-10 2:25 
GeneralRe: logs window with a lot of lines Pin
IWannaTalk13-Sep-10 3:02
IWannaTalk13-Sep-10 3:02 
GeneralRe: logs window with a lot of lines Pin
Luc Pattyn13-Sep-10 3:10
sitebuilderLuc Pattyn13-Sep-10 3:10 
GeneralRe: logs window with a lot of lines Pin
IWannaTalk13-Sep-10 21:48
IWannaTalk13-Sep-10 21:48 

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.