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

C#

 
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 
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 
Ok.

I'm a bit confused since in your earlier post you said that the rowstate was not modified before calling update? So are these correct observations:
- you change the data using a control
- immediately after that, your datatable contains a record with RowState = Modified
- when you come to the point where you call adapter's Update, your datatable doesn't have a record which is Modified?

Also remember that if your datatable contains more than one record, you originally updated only the row at index 0 (t_AppTableAdapter.Update(dataSet2.T_App.Rows[0]);) maybe the record you modified using UI isn't that record. For that reason you should always call t_AppTableAdapter.Update(dataSet2.T_App);

When I wrote about the copy, I meant that is it possible that you actually have two different datatables. Changes are made to one datatable but update is called using another. But if you're sure that you have only one datatable, then this won't be an issue.

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

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 
AnswerRe: Generics - casting int/double to Pin
DaveyM6924-Jan-09 22:57
professionalDaveyM6924-Jan-09 22:57 
GeneralRe: Generics - casting int/double to Pin
devvvy25-Jan-09 14:10
devvvy25-Jan-09 14:10 

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.