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
'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:
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