update via component

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I followed a walk through and created a record set. The db functionality is
being handeled in a component. dataaccess is working fine, but i'm not able
to built a sub to handle the updates. the walkthrough.
I used studio to create the component and it generated all the edit, update,
delete functionality. I can fill using this
Public Sub FillDataSet(ByVal dSet As myMtypes)
OleDbDataAdapter1.Fill(dSet)
End Sub
I'll post any code if needed.
but that's it. and help?
thanks
 
Kurt,
I followed a walk through and created a record set.

When you use a recordset (and fill that with a DataAdapter), than you cannot
update it using a dataadapter. That can only for Datasets, Datatables and
Datarows.

I hope this helps,

Cor
 
sorry my terms. were off. i was filling a data set and i have been able to
get it to work. Thank you for your response. (now if i can only set the
selectedindex of the dropdownlist on the editcommand/edit item(!!!). I can
populate the drop down via a dataset, but can't figure out how to select the
item that is the current value.
thanks
kes
 
Kurt,

The databox and the listbox cannot be sorted, therefore you can use for that
to get the index from your datasource the selectedindex.

Where it can be sorted you need the dataview/defaultview and/or the
currencymanagar (That is not about money however about the currentposition)

I hope this helps,

Cor
 
Back
Top