-1
我有一个Windows窗体自定义控件,显示客户记录上的警报。该控件使用Infragistics 9.1 UltraWinGrid显示这些警报,这些警报是由业务对象填充的数据集填充的。某些用户在查看这些警报时遇到问题;网格将完全空白,就像由于某种原因隐藏了字段。此示例代码显示网格如何填充:Infragistics UltraWinGrid隐藏有时
Private Sub InquiryCallbackAlertList(ByVal sender As Object, ByVal e As FunctionRequestEventArgs)
Try
'Code to populate the dataset mdslist
AlertsGrid.Visible = True
' Filter empty rows
Dim view As DataView = New DataView(mdslist.Tables("ResponseArea"))
view.RowFilter = "ResponseArea_Text <> '' "
'Bind the view
AlertsGrid.SetDataBinding(view, Nothing, True, True)
For Each c As UltraGridColumn In AlertsGrid.DisplayLayout.Bands(0).Columns
c.AutoSizeMode = ColumnAutoSizeMode.AllRowsInBand
c.PerformAutoResize(PerformAutoSizeType.AllRowsInBand)
Next
Me.Focus()
Catch ex As Exception
MsgBox(My.Resources.UnableToCompleteAction, MsgBoxStyle.Information, My.Resources.ApplicationTitle)
End Try
End Sub
我还没有找到任何有关此问题的任何成功。我确实添加了一些跟踪逻辑来检查网格行上的'HiddenResolved'属性,并且正在等待找出结果。还有什么可能导致这个网格只对一些用户而不是其他用户隐藏,也可能导致这种情况仅偶尔发生?