Click here to Skip to main content
15,921,028 members
Home / Discussions / Database
   

Database

 
Generalerror in class type Pin
ranjjj1-Oct-03 5:02
ranjjj1-Oct-03 5:02 
Generalbcp Pin
sardinka1-Oct-03 3:07
sardinka1-Oct-03 3:07 
GeneralUpdating Related Tables Pin
Wjousts30-Sep-03 11:07
Wjousts30-Sep-03 11:07 
GeneralRe: Updating Related Tables Pin
STW2-Oct-03 7:29
STW2-Oct-03 7:29 
GeneralRe: Updating Related Tables Pin
Wjousts2-Oct-03 8:54
Wjousts2-Oct-03 8:54 
GeneralRe: Updating Related Tables Pin
STW2-Oct-03 22:31
STW2-Oct-03 22:31 
GeneralRe: Updating Related Tables Pin
Wjousts3-Oct-03 4:52
Wjousts3-Oct-03 4:52 
GeneralRe: Updating Related Tables Pin
Wjousts3-Oct-03 5:20
Wjousts3-Oct-03 5:20 
Okay, I just figured something out. If, while I'm iterating through the rows, I call EndEdit on each row it will set the RowState to modified (if it has actually been modified). So the problem seem to be that when a datarow is bound to my form, BeginEdit is implicitly called, and when that particular row becomes unbound, it should automatically call EndEdit on that row. But it isn't doing it for my child table. Now, I don't want to have to iterate through all my records and call EndEdit on every one of them before I run my update because I have a lot of records and I expect it to grow rapidly once (if) I finish my app. I'm thinking I could intercept the PositionChanged event of my CurrencyManager, but I think at that point the position has already changed so I won't be able to grab the previous row to call EndEdit on it. I could try and intercept every button or event that results in a change of position and call EndEdit before I change the position, but that's a pain since I'd have to remember to do that in several different places. I'd also have to make sure I call EndEdit on the current row when the Update button is clicked, but that's not a major problem (because it's only one place).
So I think I can work around my problem, but I'd be much happier if I could just figure out why the CurrencyManager isn't calling EndEdit and fix it!
Generalwhere close Pin
sardinka30-Sep-03 5:05
sardinka30-Sep-03 5:05 
GeneralRe: where close Pin
Edbert P16-Oct-03 20:45
Edbert P16-Oct-03 20:45 
Generaladd record to a database Pin
ranjjj30-Sep-03 4:33
ranjjj30-Sep-03 4:33 
GeneralGetting the SQL commands from OleDbDataAdapter.Update Pin
Wjousts29-Sep-03 10:38
Wjousts29-Sep-03 10:38 
GeneralRe: Getting the SQL commands from OleDbDataAdapter.Update Pin
Guillermo Rivero29-Sep-03 11:53
Guillermo Rivero29-Sep-03 11:53 
GeneralRe: Getting the SQL commands from OleDbDataAdapter.Update Pin
Wjousts29-Sep-03 12:18
Wjousts29-Sep-03 12:18 
GeneralRe: Getting the SQL commands from OleDbDataAdapter.Update Pin
Wjousts30-Sep-03 4:57
Wjousts30-Sep-03 4:57 
GeneralRedistribute MS DataGrid Control Pin
pallattila29-Sep-03 7:57
pallattila29-Sep-03 7:57 
GeneralRe: Redistribute MS DataGrid Control Pin
Steve S30-Sep-03 5:21
Steve S30-Sep-03 5:21 
GeneralSQLServer and XML RAW Pin
Guillermo Rivero29-Sep-03 7:45
Guillermo Rivero29-Sep-03 7:45 
GeneralRe: SQLServer and XML RAW Pin
Mike Dimmick1-Oct-03 12:43
Mike Dimmick1-Oct-03 12:43 
GeneralRe: SQLServer and XML RAW Pin
Guillermo Rivero3-Oct-03 2:37
Guillermo Rivero3-Oct-03 2:37 
GeneralPrimary Key as a Foreign Key Pin
DotNet_Newbie29-Sep-03 6:44
DotNet_Newbie29-Sep-03 6:44 
GeneralRe: Primary Key as a Foreign Key Pin
STW2-Oct-03 22:40
STW2-Oct-03 22:40 
Generalado.net Pin
Member 23171029-Sep-03 0:37
Member 23171029-Sep-03 0:37 
GeneralRe: ado.net Pin
Roger Wright29-Sep-03 5:17
professionalRoger Wright29-Sep-03 5:17 
GeneralWinforms - Menu Generation from SQL Database at runtime Pin
sunny12328-Sep-03 22:47
sunny12328-Sep-03 22:47 

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.