dpatfield66
Well-known member
- Joined
- Apr 6, 2006
- Messages
- 136
- Programming Experience
- 5-10
I'd like to bring all this technical talk DOWN a notch by asking:
I have an sql table called OBAdmit
I have a FormsDataSet.xsd that has been created with this table.
I use TableAdapter with .fill and .update methods to get info back and forth from SQL to my .NET forms. I also use the .insert method at times.
But here's what I WANT to do...
Let's say I want to add a row to my data set, but I don't want it to go to SQL just yet (never mind why, I just have to do it that way!)
I have a search menu that is populated using a .fill, and it gives me a set of records currently in SQL...then I select one, and open up my form. I then use a .fillbyAdmitID that only retrieves one row, based on which record I selected, and then I populate my form controls (not by binding, but rather by code.)
Now, let's say I select a record from this search menu and want to create ANOTHER record, where some of the info from this record flows over to the new record, but I don't want that record in SQL just yet. I just want to create a row in my data set and then open up my form and have the controls populated by some of the data from the record I selected? HOW, in the name of.... do I do this?
I can't use .fill or .update or even .insert because this sends the data over to SQL. I dont' want to do that yet.
I have an sql table called OBAdmit
I have a FormsDataSet.xsd that has been created with this table.
I use TableAdapter with .fill and .update methods to get info back and forth from SQL to my .NET forms. I also use the .insert method at times.
But here's what I WANT to do...
Let's say I want to add a row to my data set, but I don't want it to go to SQL just yet (never mind why, I just have to do it that way!)
I have a search menu that is populated using a .fill, and it gives me a set of records currently in SQL...then I select one, and open up my form. I then use a .fillbyAdmitID that only retrieves one row, based on which record I selected, and then I populate my form controls (not by binding, but rather by code.)
Now, let's say I select a record from this search menu and want to create ANOTHER record, where some of the info from this record flows over to the new record, but I don't want that record in SQL just yet. I just want to create a row in my data set and then open up my form and have the controls populated by some of the data from the record I selected? HOW, in the name of.... do I do this?
I can't use .fill or .update or even .insert because this sends the data over to SQL. I dont' want to do that yet.