Click here to Skip to main content
16,008,750 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralProducing xml file from schema Pin
nitin_ion5-Apr-05 18:16
nitin_ion5-Apr-05 18:16 
GeneralRe: Producing xml file from schema Pin
Christian Graus5-Apr-05 18:39
protectorChristian Graus5-Apr-05 18:39 
GeneralRe: Producing xml file from schema Pin
nitin_ion5-Apr-05 20:14
nitin_ion5-Apr-05 20:14 
GeneralRe: Producing xml file from schema Pin
Christian Graus5-Apr-05 20:17
protectorChristian Graus5-Apr-05 20:17 
GeneralRe: Producing xml file from schema Pin
nitin_ion5-Apr-05 20:23
nitin_ion5-Apr-05 20:23 
GeneralRe: Producing xml file from schema Pin
Christian Graus5-Apr-05 20:26
protectorChristian Graus5-Apr-05 20:26 
GeneralRe: Producing xml file from schema Pin
nitin_ion5-Apr-05 20:29
nitin_ion5-Apr-05 20:29 
GeneralProblem with databound combobox Pin
kutz95-Apr-05 12:50
kutz95-Apr-05 12:50 
Hi all,

I am having a problem with a databound combobox in that when I save the record (ie, end current edit,update the database and accept the changes) the combobox resets its value back to the first object in the list.

Anyone else experienced this problem before?

My code for saving goes something like this.

'MsgBox("Record Saved")
'Create a new dataset to hold the changes that have been made to the main dataset.
Dim objDataSetChanges As Buckner_Intranet.dsNCR = New Buckner_Intranet.dsNCR
'Stop any current edits.
Me.BindingContext(DsNCR1, "NCR").EndCurrentEdit()
Me.BindingContext(Me.DsNCR1, "Responses").EndCurrentEdit()
'Get the changes that have been made to the main dataset.
objDataSetChanges = CType(DsNCR1.GetChanges, Buckner_Intranet.dsNCR)
'Check to see if any changes have been made.
If (Not (objDataSetChanges) Is Nothing) Then
Try
Me.BindingContext(Me.DsNCR1, "NCR").EndCurrentEdit()
Me.BindingContext(Me.DsNCR1, "Responses").EndCurrentEdit()
daNCR.Update(Me.DsNCR1, "NCR")
daResponses.Update(Me.DsNCR1, "Responses")
Catch eUpdate As System.Exception
MsgBox(eUpdate.Message)
End Try

'Commit the changes that were just merged
'This moves any rows marked as updated, inserted or changed to being marked as original values
DsNCR1.AcceptChanges()
End If

Cheers for any help you might be able to offer.

Kutz

_____________________
Don't take out the Magic Pen,
Don't draw on the Infinity Board

- Neil Young
QuestionHow to use "Joins" in Crystal Reports. Pin
eshban2845-Apr-05 12:13
eshban2845-Apr-05 12:13 
AnswerRe: How to use "Joins" in Crystal Reports. Pin
vertig07308-Apr-05 4:05
vertig07308-Apr-05 4:05 
GeneralExchange using VB.NET Pin
Ryan McCauley5-Apr-05 11:26
Ryan McCauley5-Apr-05 11:26 
GeneralRe: Exchange using VB.NET Pin
Anonymous5-Apr-05 11:42
Anonymous5-Apr-05 11:42 
GeneralRe: Exchange using VB.NET Pin
Ryan McCauley5-Apr-05 12:01
Ryan McCauley5-Apr-05 12:01 
GeneralRe: Exchange using VB.NET Pin
Anonymous5-Apr-05 17:39
Anonymous5-Apr-05 17:39 
GeneralVB6 supported until 2008 Pin
David Crow5-Apr-05 11:22
David Crow5-Apr-05 11:22 
GeneralRe: VB6 supported until 2008 Pin
Christian Graus5-Apr-05 13:03
protectorChristian Graus5-Apr-05 13:03 
GeneralRe: VB6 supported until 2008 Pin
Dave Kreskowiak5-Apr-05 16:41
mveDave Kreskowiak5-Apr-05 16:41 
GeneralRe: VB6 supported until 2008 Pin
David Crow5-Apr-05 16:41
David Crow5-Apr-05 16:41 
GeneralRe: VB6 supported until 2008 Pin
Christian Graus5-Apr-05 16:45
protectorChristian Graus5-Apr-05 16:45 
GeneralRe: VB6 supported until 2008 Pin
Mitch F.5-Apr-05 19:26
Mitch F.5-Apr-05 19:26 
GeneralRe: VB6 supported until 2008 Pin
Christian Graus5-Apr-05 19:43
protectorChristian Graus5-Apr-05 19:43 
GeneralRe: VB6 supported until 2008 Pin
rwestgraham5-Apr-05 19:58
rwestgraham5-Apr-05 19:58 
GeneralRe: VB6 supported until 2008 Pin
Christian Graus5-Apr-05 20:03
protectorChristian Graus5-Apr-05 20:03 
GeneralRe: VB6 supported until 2008 Pin
rwestgraham5-Apr-05 22:21
rwestgraham5-Apr-05 22:21 
GeneralRe: VB6 supported until 2008 Pin
Christian Graus6-Apr-05 13:15
protectorChristian Graus6-Apr-05 13:15 

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.