| | |
Datagrid
Please support our VB.NET advertiser: Intel Parallel Studio Home
![]() |
Edit the following code and put it in the button routine:
after this just call your routine to pass the SQL code to the database.
VB.NET Syntax (Toggle Plain Text)
Dim drRow As DataRow Dim intRow As Integer = 0 If DataSet1.HasChanges Then For Each drRow In DataSet1.Tables("TABLENAME").Rows If drRow.RowState = DataRowState.Added Then 'add your SQL Statement for INSERT HERE ElseIf drRow.RowState = DataRowState.Modified Then ' add your SQL Statement for UPDATE HERE ElseIf drRow.RowState = DataRowState.Deleted Then ' add your SQL Statement for DELETE HERE End If intRow += 1 Next
![]() |
Similar Threads
- binding a datagrid to a datareader (ASP.NET)
- Printing the datagrid control (ASP.NET)
- How to sort the rows in the datagrid and update it successfully? (VB.NET)
- Use of DataGrid (ASP.NET)
- Remove link frame around picture in Datagrid (ASP.NET)
- Linking to E-mail through datagrid (ASP.NET)
Other Threads in the VB.NET Forum
- Previous Thread: Widgets in vb.net
- Next Thread: can any help me in coading to access out look from vb.net
| Thread Tools | Search this Thread |
Tag cloud for VB.NET
.net 2005 2008 access account application arithmetic array arrays basic bing button buttons c# center check checkbox code combobox component convert crystalreport data database datagrid datagridview date dissertation dissertations dropdownlist excel fade file-dialog ftp generatetags google gridview hardcopy images inline input insert intel internet listview mobile monitor ms net networking objects output passingparameters picturebox picturebox1 plugin port print printing problem problemwithinstallation project remove save searchbox searchvb.net select serial server shutdown soap sorting survey table tcp temperature text textbox timer toolbox trim update updown user validation vb vb.net vb.netcode vb.netformclosing()eventpictureboxmessagebox vb2008 vbnet view visual visualbasic visualbasic.net visualstudio visualstudio2008 web winforms wpf





