As Cor's suggestion, it's better to post Web DataGrid
questions in either dotnet.framewor k.aspnet or more
specially in dotnet.framewor k.aspnet.datagr id group.
Anyway, following code shows to loop thru all items in a
datagrid:
For Each item As DataGridItem in datagrid.Items
Dim strItem = item.Cells(colI ndex).Text ' for BoundColumn
strItem = CType(item.Find Control("contrl ID"),
TextBox).Text ' for textbox in TemplateItem
' or you can cast the control to other specified type
Next
HTH
Elton Wang
el********@hotm ail.com
-----Original Message-----
Hello all in mpdlv -
I have a newbie (to asp.net) datagrid question. I have no troublereading all the cells in the current row of the datagrid from asubroutine called by an event triggered by a change of a dropdown listcontained in the datagrid. (sorry about my excessive prepositionalphrases...)
However, I've been unable to figure out how to access other rows in thedatagrid. After updating this value, I want to be able to read throughthe entire grid to see if the user has completed everything.
I'm certain there must be a way to do this, but haven't figured out themagic words to make Google show me the way.
Best regards and many thanks in advance.
Bruce Dumes
.