Infragistics UltraWinGrid 偶尔隐藏
我有一个 Windows 窗体自定义控件,用于显示客户记录上的警报。该控件使用 Infragistics 9.1 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”属性,并正在等待找出结果。是否还有其他原因可能导致此网格仅对某些用户隐藏而不对其他人隐藏,并且还有其他原因可能导致这种情况偶尔发生吗?
I have a Windows Form custom control that displays alerts on a customer record. The control uses an Infragistics 9.1 UltraWinGrid to display these alerts, which is filled from a dataset populated by a business object. Some users are having issues viewing these alerts; the grid will be completely blank, like the fields were hidden for some reason. This sample code shows how the grid is populated:
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
I have not had any success finding anything out about this problem. I did add some trace logic to check the 'HiddenResolved' property on the grid rows and am waiting to find out the results of that. Is there anything else that could be causing this grid to only be hidden for some users and not for others, and also could anything else be causing this only to happen occasionally?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在一些日志记录信息之后,我实际上发现这个特定网格中的所有列默认情况下都是隐藏的。我试图显式强制列可见,看看是否有帮助。
After some logging information, I actually found that all of my columns in this particular grid were being hidden by default. I am attempting to explicitly force the columns to be visible to see if that helps.