Infragistics UltraWinGrid 偶尔隐藏

发布于 2024-10-24 04:30:44 字数 1191 浏览 8 评论 0原文

我有一个 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

魂归处 2024-10-31 04:30:44

在一些日志记录信息之后,我实际上发现这个特定网格中的所有列默认情况下都是隐藏的。我试图显式强制列可见,看看是否有帮助。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文