Sunday, March 20, 2011

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

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

'Here's 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

1 comments:

Tani said...

Nice technical resource you are maintaining mate.This is really good information that you have shared here.Good sample on how to Fill the Datagrid View in Visual Basic .Net
sap software training

Post a Comment

 
Powered by Blogger