0
我一直在努力處理下面的代碼片段。 「CustomUnboundColumnData」事件未觸發。customunboundcolumndata event not firing in DEVExpress gridview
Protected Sub gvAlertReport_CustomUnboundColumnData(ByVal sender As Object, ByVal e As DevExpress.Web.ASPxGridView.ASPxGridViewColumnDataEventArgs)
If e.Column.FieldName = "Active" Then
Dim val As String = e.Value
Dim img As New ImageButton()
Select Case val
Case "False"
img.ImageUrl = "Images/gray_bell.png"
img.Attributes.Add("", "")
Case "True"
img.ImageUrl = "Images/red_bell.png"
img.Attributes.Add("", "")
Case Else
End Select
End If
End Sub
在此先感謝..
你在其他網格的細節行中的網格?如果不是,你可以嘗試在你的網格標籤中放置onCustomUnboundColumnData =「gvAlertReport_CustomUnboundColumnData」嗎? – Akhil 2011-06-07 18:34:33