Click here to Skip to main content
15,890,185 members
Home / Discussions / C#
   

C#

 
QuestionFTP Parse LIST Command Pin
User 572816019-Feb-09 16:46
User 572816019-Feb-09 16:46 
QuestionSPList and FileNotFoundException Pin
Not Active19-Feb-09 16:02
mentorNot Active19-Feb-09 16:02 
Questionc# code to count ,how many times a method is called? Pin
merryjoy00019-Feb-09 16:01
merryjoy00019-Feb-09 16:01 
AnswerRe: c# code to count ,how many times a method is called? Pin
Richard Andrew x6419-Feb-09 16:23
professionalRichard Andrew x6419-Feb-09 16:23 
QuestionUpdate only changed record. Pin
hdv21219-Feb-09 12:38
hdv21219-Feb-09 12:38 
AnswerRe: Update only changed record. Pin
Mycroft Holmes19-Feb-09 13:41
professionalMycroft Holmes19-Feb-09 13:41 
GeneralRe: Update only changed record. Pin
hdv21219-Feb-09 13:48
hdv21219-Feb-09 13:48 
GeneralRe: Update only changed record. Pin
Mycroft Holmes19-Feb-09 14:07
professionalMycroft Holmes19-Feb-09 14:07 
There are a number of ways to do this, again assumes you have a proc that saves 1 record at a time.

You can identify the record by filtering the defaultview on the datatable on rowstate and process the results. This can be done anytime before acceptchanges.

Change your method to accept a datarow, you already know the row, it was identified when you entered the detail form. This can then be done on the save of the detail form.

I actually use a listview/grid for browsing on the main form and when the user selects something I pop a detail form, passing the ID (or 0 for insert). On the way out of the detail form I save the row (completely different table used by the detail only). The main form refreshes the list datatable based on the dialogresult of the detail form. Trick being to limit your main form list to a reasonable size, 2-300 records only. I know this is expensive in database reads but I never have data sitting on the client that has not been saved and the speed has been more than acceptable for decades now.



Never underestimate the power of human stupidity
RAH

Questiondoubt about collections. Pin
Kishor Boddu19-Feb-09 11:40
Kishor Boddu19-Feb-09 11:40 
AnswerRe: doubt about collections. Pin
Ennis Ray Lynch, Jr.19-Feb-09 12:30
Ennis Ray Lynch, Jr.19-Feb-09 12:30 
QuestionHow get html source code of WebPage? Pin
aleXXXka19-Feb-09 11:17
aleXXXka19-Feb-09 11:17 
AnswerRe: How get html source code of WebPage? Pin
Luc Pattyn19-Feb-09 11:31
sitebuilderLuc Pattyn19-Feb-09 11:31 
GeneralRe: How get html source code of WebPage? Pin
aleXXXka19-Feb-09 12:44
aleXXXka19-Feb-09 12:44 
GeneralRe: How get html source code of WebPage? Pin
vaghelabhavesh19-Feb-09 13:07
vaghelabhavesh19-Feb-09 13:07 
GeneralRe: How get html source code of WebPage? Pin
aleXXXka22-Feb-09 7:50
aleXXXka22-Feb-09 7:50 
Questionupdating a label from a thread in a different class Pin
liamderice19-Feb-09 10:59
liamderice19-Feb-09 10:59 
AnswerRe: updating a label from a thread in a different class Pin
DaveyM6919-Feb-09 11:12
professionalDaveyM6919-Feb-09 11:12 
GeneralRe: updating a label from a thread in a different class Pin
liamderice20-Feb-09 4:48
liamderice20-Feb-09 4:48 
GeneralRe: updating a label from a thread in a different class Pin
DaveyM6920-Feb-09 6:02
professionalDaveyM6920-Feb-09 6:02 
GeneralRe: updating a label from a thread in a different class Pin
liamderice20-Feb-09 9:50
liamderice20-Feb-09 9:50 
GeneralRe: updating a label from a thread in a different class Pin
DaveyM6920-Feb-09 10:06
professionalDaveyM6920-Feb-09 10:06 
GeneralRe: updating a label from a thread in a different class Pin
DaveyM6920-Feb-09 10:27
professionalDaveyM6920-Feb-09 10:27 
AnswerRe: updating a label from a thread in a different class Pin
yuxuanji19-Feb-09 15:01
yuxuanji19-Feb-09 15:01 
AnswerRe: updating a label from a thread in a different class Pin
Luc Pattyn19-Feb-09 15:54
sitebuilderLuc Pattyn19-Feb-09 15:54 
QuestionGeneric Control WinForms and Toolbox/Designer Pin
DaveyM6919-Feb-09 10:54
professionalDaveyM6919-Feb-09 10:54 

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.