Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

Save all records DATA Grid view by typing in it

$
0
0

Hi, can somebody help me about Save all records DATA Grid view by typing in it. I'm using vb 2010..


for example i have a grid and i type the records there after going to the next row it will be saved to the database.. I'm using MSSQL 2008 for the DB. I tried this one

Private Sub frmsetting_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Me.UtOTratesTableAdapter.Fill(Me._88PayrollDataSet.utOTrates)

    End Sub

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Me.UtOTratesTableAdapter.Update(Me._88PayrollDataSet.utOTrates)
    End Sub

 but I received this error:Update requires a valid UpdateCommand when passed DataRow collection with modified rows.




Viewing all articles
Browse latest Browse all 2535

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>