Bind a datagrid to a Datatable...

larris

Member
Joined
Mar 13, 2006
Messages
23
Programming Experience
1-3
Can someone tell me how to bind a datagrid to a datatable that is created and populated programmatically(the table is not part of a dataset or a bindingsource).I have tried the code:
VB.NET:
datagridview1.datasource=testTable
but i always get an empty datagrid.
 
Can you post the whole code for this, as what you are doing with the datasource is the correct way to bind a datagrid. There must be something else wrong here.
 
Back
Top