May
24
Written by:
Steve Gray
5/24/2010 12:32 PM
Here’s a snippet of code that will loop through the rows in a ComponentArt grid
Protected Sub btnOK_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnOK.Click
Dim strItemNumber As String
Dim intRowID As Int64
Dim dblQuantity As Double
Dim txtQuantity As TextBox
For Each item As ComponentArt.Web.UI.GridItem In Me.Grid1.Items
txtQuantity = CType(Grid1.FindControl(0, 4, item, "txtQuantity"), TextBox)
strItemNumber = item("itemnmbr")
intRowID = item("dex_row_id")
dblQuantity = item("quantity")
Next
End Sub
As always, I welcome your comments!