Jump to content
Xtreme .Net Talk

Adding records... Strange problem


Recommended Posts

Guest utmusic
Posted

I have a dataset filled with my data, the problem comes when I try to add a record to that dataset. Here is my code....

 

 
Dim reallychange

Try
'Clear out the current edits
Me.BindingContext(DSReferences, "References").EndCurrentEdit()
Me.BindingContext(DSReferences, "References").AddNew()
Catch eEndEdit As System.Exception
System.Windows.Forms.MessageBox.Show(eEndEdit.Message)
End Try
Me.objVectorRef_PositionChanged()


[/Code]

 

The code does indeed add a record to the end of the dataset, the problem is that I can't navigate to it.

 

example. I have 302 records... I click the add button, I now have 303 records, but I can only navigate to the first 302. Thanks for your prompt response.

Posted

Hi,

 

have not worked with VB.NET yet, but still.

Don't know how you display your data (DatGrid+ado?)...

Sounds like the data is just not getting refreshed on the screen....

 

 

Shurik12.

Guest utmusic
Posted

Refresh data

 

I'm using seperate controls to display my data. How to I refresh the data in the dataset so that I can navigate to the new record.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...