Click here to Skip to main content
16,004,882 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i want to display data in a grid at runtime from an access file in vb.net .
In vb.net 2003 the function is DataGrid1.SetDataBinding(),
but in vb.net2005 the function is not available, can u please tell me how to display data in grid at runtime in 2005.


thanks & regards
Posted

In all versions you use the DataSource[^] property of a control to specify what data is bound to it and will be displayed.
 
Share this answer
 
Comments
l_d 21-Aug-11 13:21pm    
thank you
To further what Mark has said

Download the data from the database into either a datatable or dataset

ADO.NET Sample[^] - this has examples that you could use to learn about ADO.NET

and then you set it your datasource, for example,

VB
datagridview1.datasource=myDataTable
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900