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

Where the hell is the "add item" in the datagrid?!?!

Status
Not open for further replies.

barant

Programmer
Aug 6, 2003
12
US
OMG. How the hell do I just add one frekkin item to the datagrid? In vb6 I had everything covered and now in .net i just spent an hour trying to add "hi" to any colum in any row in the datagrid. Im LOST.
 
2 days and nobody still knows how to do this?
 
hehe,

I think I'd use a flex grid to do that. The datagrid "Displays ADO.NET data in a scrollable grid."
The flex grid was always what we used for regular text.

Phan
 
barant You need to provide/create a datasource for the datagrid. The datasource is typically a dataset (containing datatables), but can also be a datatable or a dataview.
In order to change what you see in the grid you need to change the underlying datasource. You can add rows to the view by adding rows to the datatable (e.g. using the .rows.add method).

Good luck

Sunaj
'The gap between theory and practice is not as wide in theory as it is in practice'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top