Click here to Skip to main content
15,905,915 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: FileCopy Pin
Murugavel S4-Aug-04 0:27
Murugavel S4-Aug-04 0:27 
GeneralRe: FileCopy Pin
Nick Seng4-Aug-04 15:16
Nick Seng4-Aug-04 15:16 
QuestiondataRows, dataCols, etc...? Pin
kowplunk3-Aug-04 16:04
kowplunk3-Aug-04 16:04 
AnswerRe: dataRows, dataCols, etc...? Pin
Murugavel S4-Aug-04 0:52
Murugavel S4-Aug-04 0:52 
GeneralRe: dataRows, dataCols, etc...? Pin
kowplunk4-Aug-04 6:40
kowplunk4-Aug-04 6:40 
GeneralRe: dataRows, dataCols, etc...? Pin
Jim Matthews4-Aug-04 7:21
Jim Matthews4-Aug-04 7:21 
GeneralRe: dataRows, dataCols, etc...? Pin
kowplunk4-Aug-04 7:50
kowplunk4-Aug-04 7:50 
GeneralRe: dataRows, dataCols, etc...? Pin
Jim Matthews4-Aug-04 8:08
Jim Matthews4-Aug-04 8:08 
no problem.

i would advise against doing it the way you said you were able to get around your problem for two main reasons.

1. you are going to have problems updating back to the datasource. this is because you've changed the structure of the table. when you use fill from the dataadapter to populate a table the dataadapter itself holds information regarding the information that was pulled and automatically creates insert, update and delete statements based on the structure of what was initially pulled. you could certainly call myAdapter.Update(myNewTable) but it will no doubt cause problems because the structure has changed. This is of course unless you manually update the commandtext property of the corresponding commands to reflect the structure of the new table.

2. you are incurring an unnecessary performance hit by copying the data from the table that is returned by the adapter into a new table. this will be more of an issue as the amount of data returned increases.

so basically, you can do it this way, but i don't really think it's necessary in your situation. my recommendation would be to just pull the data out using the dataadapter, let the user update the data, and use the same dataadapter to update, if possible.

If using the same dataadapter isn't possible, then you have to look into how to set the properties of the dataadatper and it's underlying Insert, Update, and Delete Commands and their corresponding CommandText properties to get the data back into the database correctly.




- jim
GeneralRe: dataRows, dataCols, etc...? Pin
kowplunk4-Aug-04 10:46
kowplunk4-Aug-04 10:46 
GeneralRe: dataRows, dataCols, etc...? Pin
Jim Matthews4-Aug-04 10:51
Jim Matthews4-Aug-04 10:51 
GeneralRe: dataRows, dataCols, etc...? Pin
kowplunk4-Aug-04 11:09
kowplunk4-Aug-04 11:09 
GeneralRe: dataRows, dataCols, etc...? Pin
kowplunk4-Aug-04 11:18
kowplunk4-Aug-04 11:18 
GeneralRe: dataRows, dataCols, etc...? Pin
kowplunk4-Aug-04 11:54
kowplunk4-Aug-04 11:54 
GeneralRe: dataRows, dataCols, etc...? Pin
Jim Matthews4-Aug-04 14:26
Jim Matthews4-Aug-04 14:26 
GeneralRe: dataRows, dataCols, etc...? Pin
kowplunk9-Aug-04 6:10
kowplunk9-Aug-04 6:10 
QuestionHow to implement right click event on MenuItem of Mainmenu in vb.net? Pin
viettho3-Aug-04 13:43
viettho3-Aug-04 13:43 
AnswerRe: How to implement right click event on MenuItem of Mainmenu in vb.net? Pin
Dave Kreskowiak4-Aug-04 4:37
mveDave Kreskowiak4-Aug-04 4:37 
GeneralMMControl Help Pin
Red Sunday3-Aug-04 12:36
Red Sunday3-Aug-04 12:36 
GeneralRe: MMControl Help Pin
Dave Kreskowiak4-Aug-04 3:33
mveDave Kreskowiak4-Aug-04 3:33 
GeneralRe: MMControl Help Pin
Red Sunday4-Aug-04 7:54
Red Sunday4-Aug-04 7:54 
GeneralRe: MMControl Help Pin
Dave Kreskowiak4-Aug-04 10:48
mveDave Kreskowiak4-Aug-04 10:48 
Generaloverwrite a mdb file Pin
kornstyle3-Aug-04 12:26
kornstyle3-Aug-04 12:26 
GeneralRe: overwrite a mdb file Pin
Dave Kreskowiak4-Aug-04 3:08
mveDave Kreskowiak4-Aug-04 3:08 
GeneralRe: overwrite a mdb file Pin
kornstyle4-Aug-04 3:54
kornstyle4-Aug-04 3:54 
GeneralPopulating dropdown in client side. Pin
mittalpa3-Aug-04 11:07
mittalpa3-Aug-04 11:07 

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.