Click here to Skip to main content
15,915,093 members
Home / Discussions / Database
   

Database

 
GeneralRe: Adding Time value in Access table Pin
Yakimo28-May-03 3:56
Yakimo28-May-03 3:56 
Generalconfusing error Pin
Pavel Klocek28-May-03 1:12
Pavel Klocek28-May-03 1:12 
GeneralRe: confusing error Pin
Pavel Klocek28-May-03 2:49
Pavel Klocek28-May-03 2:49 
GeneralADO.NET & MYSQL Pin
kgoodrich27-May-03 6:47
kgoodrich27-May-03 6:47 
GeneralRe: ADO.NET & MYSQL Pin
kgoodrich27-May-03 6:58
kgoodrich27-May-03 6:58 
GeneralRe: ADO.NET & MYSQL Pin
Mazdak28-May-03 18:50
Mazdak28-May-03 18:50 
GeneralRe: ADO.NET & MYSQL Pin
kgoodrich29-May-03 4:32
kgoodrich29-May-03 4:32 
GeneralData Binding and DB Update Pin
DionChen27-May-03 3:35
DionChen27-May-03 3:35 
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"));

QuestionCan we use Array In SQL Server? Pin
pradipta26-May-03 23:07
pradipta26-May-03 23:07 
AnswerRe: Can we use Array In SQL Server? Pin
Hesham Amin27-May-03 5:43
Hesham Amin27-May-03 5:43 
GeneralRe: Can we use Array In SQL Server? Pin
pradipta27-May-03 18:11
pradipta27-May-03 18:11 
GeneralRe: Can we use Array In SQL Server? Pin
Hesham Amin27-May-03 20:56
Hesham Amin27-May-03 20:56 
Questionbest data Access method ? Pin
Gaurika Wijeratne26-May-03 17:34
Gaurika Wijeratne26-May-03 17:34 
AnswerRe: best data Access method ? Pin
Hesham Amin27-May-03 5:47
Hesham Amin27-May-03 5:47 
Questionhow can I open a database in one NT service? Pin
diyzhao26-May-03 17:19
diyzhao26-May-03 17:19 
GeneralCreating Tree type Structures DB Pin
saahmad25-May-03 19:35
saahmad25-May-03 19:35 
GeneralRe: Creating Tree type Structures DB Pin
Rein Hillmann25-May-03 19:46
Rein Hillmann25-May-03 19:46 
GeneralComparison of '.NET SqlClient' and 'Microsoft OLEDB' for accessing MSSQL 7 and above Pin
Uday Takbhate24-May-03 22:02
Uday Takbhate24-May-03 22:02 
GeneralRe: Comparison of '.NET SqlClient' and 'Microsoft OLEDB' for accessing MSSQL 7 and above Pin
Nick Parker25-May-03 3:35
protectorNick Parker25-May-03 3:35 
GeneralRe: Comparison of '.NET SqlClient' and 'Microsoft OLEDB' for accessing MSSQL 7 and above Pin
Vasudevan Deepak Kumar25-May-03 19:44
Vasudevan Deepak Kumar25-May-03 19:44 
GeneralRe: Comparison of '.NET SqlClient' and 'Microsoft OLEDB' for accessing MSSQL 7 and above Pin
Uday Takbhate25-May-03 22:16
Uday Takbhate25-May-03 22:16 
GeneralBCP.exe and @@TEXTSIZE Pin
John Fisher23-May-03 11:47
John Fisher23-May-03 11:47 
QuestionDataSet and XML Schema? Pin
liuage21-May-03 23:28
liuage21-May-03 23:28 
GeneralIndex of item in subquery Pin
Addabis21-May-03 3:05
Addabis21-May-03 3:05 
GeneralRe: Index of item in subquery Pin
Arjan Einbu21-May-03 11:00
Arjan Einbu21-May-03 11:00 

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.