Tampilkan postingan dengan label datagrid. Tampilkan semua postingan
Tampilkan postingan dengan label datagrid. Tampilkan semua postingan

Sample Code on How to Fill the Datagrid View in Visual Basic Net

Minggu, 16 Februari 2014

0 komentar
Sample on how to Fill the Datagrid View in Visual Basic .Net

Heres the code below.

Dim query as string="Select * from EmployeeTable"
Dim da as new oledbdataadapter(query,con)

dim ds as new dataset

da.fill(ds,"EmployeeTable")

me.dgv.datasource=ds
me.dgv.datamember="EmployeeTable"

ds.dispose

con.close
Read More..

Copyright © 2010-2022 Kabar Blog | Powered By Blogger