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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Add rows to a data grid without a datasource 1

Status
Not open for further replies.

CompCodeBoy

Programmer
Aug 18, 2005
33
US
How to add a row to a datagrid ? I got 4 integer values stored in variables that I need to add to a datagrid. There's no datasource involved here.
 
Create a datatable in code, then assign the data to a row in the datatable, then assign the datatable as the grid's datasource.

I used to rock and roll every night and party every day. Then it was every other day. Now I'm lucky if I can find 30 minutes a week in which to get funky. - Homer Simpson
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top