Dim lnk As LinkButton = TryCast(sender, LinkButton) Dim gr As GridViewRow = DirectCast(lnk.NamingContainer, GridViewRow) Dim tempID As Integer = Convert.ToInt32(gr.RowIndex) For i As Integer = 1 To gdvLineItems.Rows.Count - 1 Dim row = gdvLineItems.Rows(i) Dim rowHeaderCell = row.Cells(0) Dim tempval = row.FindControl("lblRowNumber") If tempID = DirectCast(tempval, System.Web.UI.WebControls.Label).Text.ToString().Trim() Then ' If tempID = rowHeaderCell.Text.ToString().Trim() Then txtMDOT.Text = row.Cells(1).Text.ToString().Trim() txtM32nds.Text = row.Cells(3).Text.ToString().Trim() txtMApprNbr.Text = row.Cells(7).Text.ToString().Trim() txtMPosition.Text = row.Cells(4).Text.ToString().Trim() txtMProdCode.Text = row.Cells(6).Text.ToString().Trim() txtMRR.Text = row.Cells(8).Text.ToString().Trim() ddlMRemAre.SelectedValue = row.Cells(5).Text.ToString().Trim() txtMSize.Text = row.Cells(2).Text.ToString().Trim() End If Next mpCopyRow.Show()
For i As Integer = 1 To gdvLineItems.Rows.Count - 1
For i As Integer = 0 To gdvLineItems.Rows.Count - 1
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)