-
I need a user to be able to drag an entry from a datalist control and drop it into a frame that is next to the datalist.
When the item is dropped, vb needs to automatically create a couple new textboxes in the place that the item from the datalist was dropped. Those textboxes need to be named sequentially ( If the user drag-drops fifteen times, then the textboxes will be named text1,text2,text3,...) And they need to be databound to an adodc control. The data that get sent back to the DB will be generated based on the item dropped from the datalist.
Please help!
-
ozy....,
Why don't you use control arrays? Place a TextBox (Text1)on your frame at design time, set its visible property to "FALSE", Set its index property to 0. When the event that calls for a new text box is triggered create a new element called Text1(1). When you create a new control array element it inherits the properties of the control that you used to create it... I am unfamiliar with ADO and hence the ADODC control, but I would think that if you want to have multiple Controls bound to Multiple Records in the same table that you will have to create an ADODC for each text1 element. This would be terribly inefficient. I think that you should consider solving this problem with unbound text controls, but Like I said, I am unfamiliar with ADO....
Hope it helps,
Hunter