Click here to Skip to main content
15,912,205 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questioneditable datagrid column Pin
vidhu raj7-Sep-06 5:03
vidhu raj7-Sep-06 5:03 
AnswerRe: editable datagrid column Pin
KreativeKai7-Sep-06 8:30
professionalKreativeKai7-Sep-06 8:30 
Questionprocedure working fine with oracle is not working when i call from vb Pin
Mohamed nishar7-Sep-06 4:48
Mohamed nishar7-Sep-06 4:48 
QuestionFunction to reverse a number Pin
dcomf7-Sep-06 4:24
dcomf7-Sep-06 4:24 
AnswerRe: Function to reverse a number Pin
aniskhan7-Sep-06 5:04
aniskhan7-Sep-06 5:04 
AnswerRe: Function to reverse a number Pin
aniskhan7-Sep-06 5:35
aniskhan7-Sep-06 5:35 
AnswerRe: Function to reverse a number Pin
Guffa7-Sep-06 8:28
Guffa7-Sep-06 8:28 
QuestionHow to update a table Pin
cstrader2327-Sep-06 2:17
cstrader2327-Sep-06 2:17 
I guess I thought it would be easy to update a table, but evidently my code is incorrect.

This code keeps producing this error:

Concurrency violation: the UpdateCommand affected 0 of the expected 1 records.

whenever I make a change in the table and then press button1.

could anyone please explain why?

tia


Public Class Form1


Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Me.TickersTableAdapter.Fill(Me.DataSet1.Tickers)
End Sub

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Me.TickersTableAdapter.Update(Me.DataSet1.Tickers)
Me.DataSet1.AcceptChanges()
End Sub
End Class
AnswerRe: How to update a table Pin
Nikhil Bandekar7-Sep-06 23:30
Nikhil Bandekar7-Sep-06 23:30 
GeneralRe: How to update a table Pin
cstrader2328-Sep-06 2:58
cstrader2328-Sep-06 2:58 
AnswerRe: How to update a table Pin
Dave Kreskowiak8-Sep-06 3:18
mveDave Kreskowiak8-Sep-06 3:18 
GeneralRe: How to update a table Pin
cstrader2328-Sep-06 3:27
cstrader2328-Sep-06 3:27 
GeneralRe: How to update a table Pin
cstrader2328-Sep-06 3:31
cstrader2328-Sep-06 3:31 
GeneralRe: How to update a table Pin
Dave Kreskowiak8-Sep-06 6:41
mveDave Kreskowiak8-Sep-06 6:41 
QuestionThe source file has changed Pin
KreativeKai7-Sep-06 2:12
professionalKreativeKai7-Sep-06 2:12 
AnswerRe: The source file has changed Pin
_mubashir7-Sep-06 21:31
_mubashir7-Sep-06 21:31 
AnswerRe: The source file has changed Pin
A*****11-Sep-06 13:51
A*****11-Sep-06 13:51 
GeneralRe: The source file has changed Pin
KreativeKai12-Sep-06 1:25
professionalKreativeKai12-Sep-06 1:25 
Questionlist view Pin
Hasan Jaffal7-Sep-06 1:59
Hasan Jaffal7-Sep-06 1:59 
AnswerRe: list view Pin
H@is@here7-Sep-06 11:14
H@is@here7-Sep-06 11:14 
GeneralRe: list view [modified] Pin
Hasan Jaffal7-Sep-06 13:43
Hasan Jaffal7-Sep-06 13:43 
GeneralRe: list view Pin
Hasan Jaffal7-Sep-06 14:11
Hasan Jaffal7-Sep-06 14:11 
GeneralRe: list view Pin
H@is@here9-Sep-06 16:29
H@is@here9-Sep-06 16:29 
GeneralRe: list view Pin
slowbutsure2913-Sep-06 21:42
slowbutsure2913-Sep-06 21:42 
Questionhelp for atlas: cascading drop down from database? Pin
ii_noname_ii7-Sep-06 1:38
ii_noname_ii7-Sep-06 1:38 

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.