Click here to Skip to main content
15,896,726 members
Home / Discussions / C#
   

C#

 
GeneralWhitespaceHandling Pin
Kant27-May-03 5:30
Kant27-May-03 5:30 
GeneralRe: WhitespaceHandling Pin
Philip Fitzsimons27-May-03 22:26
Philip Fitzsimons27-May-03 22:26 
GeneralRe: WhitespaceHandling Pin
Kant28-May-03 5:01
Kant28-May-03 5:01 
GeneralRe: WhitespaceHandling Pin
Philip Fitzsimons28-May-03 5:06
Philip Fitzsimons28-May-03 5:06 
GeneralRe: WhitespaceHandling Pin
Kant28-May-03 6:13
Kant28-May-03 6:13 
GeneralRe: WhitespaceHandling Pin
Philip Fitzsimons28-May-03 6:19
Philip Fitzsimons28-May-03 6:19 
GeneralRe: WhitespaceHandling Pin
Kant28-May-03 6:38
Kant28-May-03 6:38 
GeneralDataBinding and Update Pin
DionChen27-May-03 3:36
DionChen27-May-03 3:36 
Hi, everyone:

I am using VS.NET 2003 to create a winForm application ( Same result in VS.NET 2002). The application accesses MS Access DB so that an user can edit the DB.

When I have Datagrid bounded to the tables, all the updates (Insert,Delete and Update) work perfect. However, I have one table that I have to bound it to TextBoxes and CheckBoxes. If I insert or delete a record, it updates the DB fine. When I change the text in the texboxes, or click on the checkboxes, The record is supposed to be modified. When I click on my save button, I use table.GetChanges(DataRowState.Modified) to retrieve the changes. Surprisely, there is no changes, even though I thought I have the right binding.

Apparently, when I change the textboxes or checkboxes, the datarow status did not change to Modified. I can not figure out what I missed here. Please help. Thanks in advance.

Dion

More info:

I have columns as Text, Number and Yes/No in the MS Access DB. Here are the simplified code to do the binding:

For Number:

Binding b1 = new Binding("Text", dsMain1, "LMMaster.LMMasterLMSimConfig.LessonTime");
b1.Parse+=new ConvertEventHandler(TextStringToInteger);
b1.Format+=new ConvertEventHandler(IntegerToTextString);
txtLessonTime.DataBindings.Add(b1);

For Text:

txtConfig.DataBindings.Add(new Binding("Text", dsMain1, "LMMaster.LMMasterLMSimConfig.Config"));


For CheckBox:

chkboxHelp.DataBindings.Add(new Binding("Checked", dsMain1, "LMMaster.LMMasterLMSimConfig.Help"));

GeneralRe: DataBinding and Update Pin
..Hubert..27-May-03 6:40
..Hubert..27-May-03 6:40 
QuestionWhat's the better way to terminate the following thread? Pin
Daniel Strigl27-May-03 2:47
Daniel Strigl27-May-03 2:47 
AnswerRe: What's the better way to terminate the following thread? Pin
Tom Welch27-May-03 4:09
Tom Welch27-May-03 4:09 
QuestionStill no solution! Memory bug in Services? Pin
solidstore27-May-03 1:46
solidstore27-May-03 1:46 
AnswerRe: Still no solution! Memory bug in Services? Pin
Philip Fitzsimons27-May-03 22:27
Philip Fitzsimons27-May-03 22:27 
Generaldatasets with criteria and codedescription Pin
haezeban27-May-03 0:46
haezeban27-May-03 0:46 
GeneralRe: datasets with criteria and codedescription Pin
Rocky Moore27-May-03 22:26
Rocky Moore27-May-03 22:26 
GeneralThread.IsBackground Pin
Daniel Strigl27-May-03 0:44
Daniel Strigl27-May-03 0:44 
GeneralRe: Thread.IsBackground Pin
Tom Welch27-May-03 4:05
Tom Welch27-May-03 4:05 
GeneralGraphs (!Graphics) Pin
NHM27-May-03 0:05
NHM27-May-03 0:05 
GeneralBitmap editing with different bitmap formats Pin
Oyvind Bratland26-May-03 21:44
Oyvind Bratland26-May-03 21:44 
GeneralBitmap Transparency Issue Pin
Joseph LeBlanc26-May-03 14:08
Joseph LeBlanc26-May-03 14:08 
GeneralC# & XML should take the blue pill ;-) Pin
antoine@orchus-tech26-May-03 11:45
antoine@orchus-tech26-May-03 11:45 
GeneralRe: C# & XML should take the blue pill ;-) Pin
Chris Maunder26-May-03 16:01
cofounderChris Maunder26-May-03 16:01 
GeneralRe: C# & XML should take the blue pill ;-) Pin
antoine@orchus-tech26-May-03 19:02
antoine@orchus-tech26-May-03 19:02 
GeneralRe: C# & XML should take the blue pill ;-) Pin
J. Dunlap26-May-03 19:13
J. Dunlap26-May-03 19:13 
GeneralRe: C# & XML should take the blue pill ;-) Pin
antoine@orchus-tech27-May-03 4:10
antoine@orchus-tech27-May-03 4: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.