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

Minggu, 16 Februari 2014

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

Related Posts by Categories

0 komentar:

Posting Komentar

Copyright © 2010-2022 Kabar Blog | Powered By Blogger