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

Traversing the datagrid

Status
Not open for further replies.

NCYankee1

Programmer
Mar 27, 2001
66
US
I want to be able to read and process all items on my data grid without using the built in row by row editing of the data grid. I have a templated grid that opens up with n... records loaded and displayed in their corresponding controls within the grid (textbox, dropdownlsit etc). I want to be able to traverse the grid row by row, cell by cell, extracting and converting the data. I can do this fairly easily with a data bound (non templated) grid, as the code below demonstrates.

Dim ItemRow As DataGridItem
Dim ItemColumn As DataGridColumn
Dim ColumnCounter As Integer
For Each ItemRow In Datagrid21.Items
For ColumnCounter = 0 To ItemRow.Cells.Count - 1
'' CODE FOR EACH VALUE
Next ColumnCounter
'' CODE FOR EACH ROW
Next ItemRow

But I can not seem to find a suitable way to accomplish this with a templated grid.

Any suggestions? [sadeyes]
 
You got to be kidding you dumnAss, what are you some kind of moron from Charlotte.

Lew

To anyone reading this reply, it is a joke.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top