Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

bind gridview to datatable created on fly

Status
Not open for further replies.

daughtd

Programmer
Sep 6, 2006
15
US
Is it possible to bind a gridview to a datatable which is created and populated in the OnLoad event? If so some examples or some direction would be greatly appreciated
 
You should be able to do this:

dgEmpEditEmp.DataSource = pObjTb;

where:
dgEmpEditEmp is datagridview
pObjTb is your table

Malay
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top