CheckBox in DataGridView for attending
I presume you are using a SELECT statement to get your data, if so.
Code:
adapter = New SqlDataAdapter("SELECT Your statement", connection)
' adapter.Fill(table)
adapter.Fill(YourTable, "Data")
Dim cb As New SqlCommandBuilder(adapter)
adapter.InsertCommand = cb.GetInsertCommand
adapter.UpdateCommand = cb.GetUpdateCommand
adapter.DeleteCommand = cb.GetDeleteCommand
Click on the cell to edit.
In your updateButton.Click event
Code:
adapter.Update(YourTable.Tables("Data"))
You may have to play with this for yor application.
Edited by - TAILOR on 4/17/2008 2:33:26 PM
source :http://www.vbcity.com
-------------------------------------------------------
Trik Gambar Bergerak
Trik Gambar-dimouse
Trik hapus pwd mysql
Trik insertin to db
Trik jadi root dilinux
Trik jam-distatus-bar
Trik Koneksi-ke database
Trik Koneksi-msql-php
Trik lihat-database-mysql
Trik membahas-fungsi-else
Trik member-area
Senin, 02 Februari 2009
Langganan:
Postingan (Atom)