Grid DataBind
For i = 0 To UBound(ls_amcarray)dtcol = New DataColumn("Transaction Count" & ls_amcarray(i))
dt1.Columns.Add(dtcol)
dtcol = New DataColumn("Auth Count" & ls_amcarray(i))
dt1.Columns.Add(dtcol)
Next
ct = dt1.Columns.Count
For i = 0 To UBound(arrloc)
dtrow = dt1.NewRow
dtrow("UserCode") = arrloc(i)
For k = 0 To UBound(ls_amcarray)
pv.Flag =
"SCANCAPTUREDCOUNT"
pv.TransationType =
""
pv.TradeDate = dateval
pv.UserCode = arrloc(i)
pv.Amount = 0
dt = bc.GenerateXMLData(pv, ls_amcarray(k), "EISCTEST", "TEST PAGE", func_owner(ls_amcarray(k)), 0)
If dt.Rows.Count > 0 ThenFor j = 0 To dt.Rows.Count - 1
dtrow(
"Transaction Count" & ls_amcarray(k)) = Convert.ToString(dt.Rows(j).Item(1))dtrow("Auth Count" & ls_amcarray(k)) = Convert.ToString(dt.Rows(j).Item(2))
Next
Elsedtrow("Transaction Count" & ls_amcarray(k)) = 0
dtrow(
"Auth Count" & ls_amcarray(k)) = 0
End If
Next
dt1.Rows.Add(dtrow)
Next
GridView1.DataSource = dt1
=======================
Grid view1_rowdatabound event : -
For i = 1 To ct - 1 Step 2
If e.Row.Cells(i).Text <> "0" ThenDim hlControl As New HyperLink()
hlControl.Text = e.Row.Cells(i).Text
hlControl.NavigateUrl =
"iscNScanSummary.aspx?="
e.Row.Cells(i).Controls.Add(hlControl)
End If
Next
i need to pass more than one parameter using gridview where we bind the grid using data table. Could any body help me how to fetch the data from the grid view and pass it to the query string parameters.