DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Tue, 21 Aug 2007 13:56:33 -0400,    posted on: microsoft.public.dotnet.framework.adonet        back       

Thread Index
  1    C a r l o s A n t o n i o carlvazpr?arrobayahoo.com


Update datarow in typed dataset   
Hello,

How can I update a datarow in a typed dataset?  It seems i can't make it to 
write the changes into the database.  What am i doing wrong?  Thanks in 
advance.

Here's my code:

Private Sub save_changes(ByVal _infraction_id As System.Guid)

Dim o_adapter As New roswellDataSetTableAdapters.infractionsTableAdapter

Dim o_data_table As roswellDataSet.infractionsDataTable

Dim o_row As roswellDataSet.infractionsRow



o_data_table = o_adapter.GetData

o_row = o_data_table.FindByinfraction_id(_infraction_id)



With o_row

..BeginEdit()

           .ticket_number = "333"

          .EndEdit()

          .AcceptChanges()

End With



o_adapter.Update(o_data_table)

o_data_table.AcceptChanges()

End Sub
Date:Tue, 21 Aug 2007 13:56:33 -0400   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us