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

C#

 
GeneralRe: Preventing filedestruction after saving richtextbox contents at program end Pin
Wendelius25-Jan-09 0:35
mentorWendelius25-Jan-09 0:35 
GeneralRe: Preventing filedestruction after saving richtextbox contents at program end Pin
fracalifa25-Jan-09 0:56
fracalifa25-Jan-09 0:56 
GeneralRe: Preventing filedestruction after saving richtextbox contents at program end Pin
Wendelius25-Jan-09 1:02
mentorWendelius25-Jan-09 1:02 
AnswerRe: Preventing filedestruction after saving richtextbox contents at program end Pin
DaveyM6925-Jan-09 0:07
professionalDaveyM6925-Jan-09 0:07 
QuestionData binding Pin
half-life24-Jan-09 22:42
half-life24-Jan-09 22:42 
AnswerRe: Data binding Pin
Wendelius25-Jan-09 0:03
mentorWendelius25-Jan-09 0:03 
GeneralRe: Data binding Pin
half-life25-Jan-09 0:40
half-life25-Jan-09 0:40 
GeneralRe: Data binding Pin
Wendelius25-Jan-09 0:51
mentorWendelius25-Jan-09 0:51 
First you could check that just after modifying a value in a control, the datatable contains the change (and the rowstate is Modified). If the modification is not reflected correctly to the datatable, your control binding isn't correctly.

If the modification is visible in the datatable, then I would suspect that you call either AcceptChanges or RejectChanges somewhere before you call the DataAdapter.Update.

Also it could be possible that you have binded a datatable to the controls, but you are actually trying to save a different datatable (a copy?).

The need to optimize rises from a bad design.My articles[^]

GeneralRe: Data binding Pin
half-life25-Jan-09 1:20
half-life25-Jan-09 1:20 
GeneralRe: Data binding Pin
Wendelius25-Jan-09 1:34
mentorWendelius25-Jan-09 1:34 
GeneralRe: Data binding Pin
half-life25-Jan-09 1:51
half-life25-Jan-09 1:51 
GeneralRe: Data binding Pin
Wendelius25-Jan-09 1:57
mentorWendelius25-Jan-09 1:57 
GeneralRe: Data binding Pin
half-life25-Jan-09 2:11
half-life25-Jan-09 2:11 
GeneralRe: Data binding Pin
Wendelius25-Jan-09 2:23
mentorWendelius25-Jan-09 2:23 
GeneralRe: Data binding Pin
half-life25-Jan-09 2:54
half-life25-Jan-09 2:54 
GeneralRe: Data binding Pin
Wendelius25-Jan-09 2:59
mentorWendelius25-Jan-09 2:59 
QuestionDetecting similar URLs Pin
Meysam Mahfouzi24-Jan-09 21:17
Meysam Mahfouzi24-Jan-09 21:17 
AnswerRe: Detecting similar URLs Pin
Wendelius24-Jan-09 22:14
mentorWendelius24-Jan-09 22:14 
QuestionListener Pin
shuahsan24-Jan-09 17:28
shuahsan24-Jan-09 17:28 
AnswerRe: Listener Pin
SeMartens25-Jan-09 1:05
SeMartens25-Jan-09 1:05 
QuestionSNMP Pin
shuahsan24-Jan-09 17:26
shuahsan24-Jan-09 17:26 
QuestionGenerics - casting int/double to <t></t> Pin
devvvy24-Jan-09 17:24
devvvy24-Jan-09 17:24 
AnswerRe: Generics - casting int/double to Pin
DaveyM6924-Jan-09 22:19
professionalDaveyM6924-Jan-09 22:19 
AnswerRe: Generics - casting int/double to Pin
S. Senthil Kumar24-Jan-09 22:54
S. Senthil Kumar24-Jan-09 22:54 
GeneralRe: Generics - casting int/double to Pin
devvvy25-Jan-09 14:12
devvvy25-Jan-09 14:12 

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.