Click here to Skip to main content
16,007,687 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Save & access file on network Pin
Vikash Yadav4-Feb-07 22:04
Vikash Yadav4-Feb-07 22:04 
QuestionHi Access denied For HIT Counter Pin
sandipan.neogi@gmail.com4-Feb-07 20:29
sandipan.neogi@gmail.com4-Feb-07 20:29 
QuestionHow to update data by using datagird and textbox ? Pin
bircut4-Feb-07 16:17
bircut4-Feb-07 16:17 
AnswerRe: How to update data by using datagird and textbox ? Pin
Johan Hakkesteegt4-Feb-07 23:16
Johan Hakkesteegt4-Feb-07 23:16 
GeneralRe: How to update data by using datagird and textbox ? [modified] Pin
bircut5-Feb-07 2:10
bircut5-Feb-07 2:10 
GeneralRe: How to update data by using datagird and textbox ? Pin
Johan Hakkesteegt5-Feb-07 2:37
Johan Hakkesteegt5-Feb-07 2:37 
GeneralRe: How to update data by using datagird and textbox ? Pin
bircut5-Feb-07 2:47
bircut5-Feb-07 2:47 
GeneralRe: How to update data by using datagird and textbox ? Pin
Johan Hakkesteegt5-Feb-07 3:49
Johan Hakkesteegt5-Feb-07 3:49 
Please test this:
<br />
Private Sub ButtonUpdate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ButtonUpdate.Click<br />
dataConnection.Open()<br />
        Dim temp As DataTable<br />
            Try<br />
                Dim r As DataRow<br />
                For Each r In table.Rows<br />
                    If IsDBNull(r.Item("classID")) = True Then<br />
                        r.Item("classID") = TextboxClassID.Text<br />
                    End If<br />
                Next<br />
                table.AcceptChanges()<br />
                temp = table.GetChanges() 'table is a dataTable which is used for datagrid source<br />
                If Not temp Is Nothing Then dataAdapter.Update(temp)<br />
            Catch ex As Exception<br />
                table.RejectChanges()<br />
                dataConnection.Close()<br />
                MsgBox(ex.ToString)<br />
            End Try<br />
        End If<br />
        dataConnection.Close()<br />
    End Sub<br />


If that also doesn't work, I will try to have another look at it tomorrow.

Johan

My advice is free, and you may get what you paid for.

GeneralRe: How to update data by using datagird and textbox ? Pin
bircut5-Feb-07 4:19
bircut5-Feb-07 4:19 
GeneralRe: How to update data by using datagird and textbox ? Pin
Johan Hakkesteegt5-Feb-07 19:57
Johan Hakkesteegt5-Feb-07 19:57 
GeneralRe: How to update data by using datagird and textbox ? Pin
bircut5-Feb-07 20:27
bircut5-Feb-07 20:27 
GeneralRe: How to update data by using datagird and textbox ? Pin
Johan Hakkesteegt5-Feb-07 22:30
Johan Hakkesteegt5-Feb-07 22:30 
GeneralRe: How to update data by using datagird and textbox ? Pin
bircut6-Feb-07 4:59
bircut6-Feb-07 4:59 
GeneralRe: How to update data by using datagird and textbox ? Pin
Johan Hakkesteegt6-Feb-07 21:57
Johan Hakkesteegt6-Feb-07 21:57 
GeneralRe: How to update data by using datagird and textbox ? Pin
bircut6-Feb-07 22:50
bircut6-Feb-07 22:50 
GeneralRe: How to update data by using datagird and textbox ? Pin
Johan Hakkesteegt6-Feb-07 22:56
Johan Hakkesteegt6-Feb-07 22:56 
GeneralRe: How to update data by using datagird and textbox ? Pin
bircut7-Feb-07 0:41
bircut7-Feb-07 0:41 
GeneralRe: How to update data by using datagird and textbox ? [modified] Pin
bircut13-Feb-07 21:51
bircut13-Feb-07 21:51 
GeneralRe: How to update data by using datagird and textbox ? Pin
Johan Hakkesteegt14-Feb-07 22:30
Johan Hakkesteegt14-Feb-07 22:30 
GeneralRe: How to update data by using datagird and textbox ? Pin
bircut14-Feb-07 23:07
bircut14-Feb-07 23:07 
QuestionPopulating a combo box with file names from a directory. Pin
Ron.Com4-Feb-07 12:35
Ron.Com4-Feb-07 12:35 
AnswerRe: Populating a combo box with file names from a directory. Pin
Christian Graus4-Feb-07 12:37
protectorChristian Graus4-Feb-07 12:37 
QuestionDisplaying Forms Pin
jady844-Feb-07 12:10
jady844-Feb-07 12:10 
AnswerRe: Displaying Forms Pin
Christian Graus4-Feb-07 12:18
protectorChristian Graus4-Feb-07 12:18 
Questionenumerate db2 server in lan Pin
sal214-Feb-07 9:05
sal214-Feb-07 9:05 

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.