Note, the bind of this gv must be in Page_Load. When you click btnConfirm, Page_Load will bind gv again, but keep checkbox values, then btnConfirm will be called. |
Protected Sub btnConfirm_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnConfirm.Click
Dim i As Int16 = 0
Dim chk As DevExpress.Web.ASPxEditors.ASPxCheckBox
Dim lblID As DevExpress.Web.ASPxEditors.ASPxLabel
For i = 0 To grdConfirm.GetCurrentPageRowValues("Confirm").Count - 1
chk = grdConfirm.FindRowCellTemplateControl(i, grdConfirm.Columns(0), "chkDelete")
If chk.Checked Then
lblID = grdConfirm.FindRowCellTemplateControl(i, grdConfirm.Columns(0), "lblID")
'lblError.Text &= lblID.Text.ToString & ","
DAL.OpcHistory.DelSelection(Val(ddlCategory.Value.ToString), Me.DLR_ID, lblID.Text)
End If
Next
pnlConfirm.Visible = False
pnlOptions.Visible = True
txtFilter.Text = ""
Me.FillListBoxes()
End Sub
...
').style.display='none';">
...
...
Public Function test(ByVal value As Integer) As String
If value > 0 Then Return "block" Else Return "none"
End Function
Select the Custom Page Permission for this group
...