从 radgridview vb.net winform 中隐藏 GridViewSummaryRowItem
Hide GridViewSummaryRowItem from radgridview vb.net winform
我已经计算了 radgridview 中的总和并显示文本中的值 box.which 已成功完成。
Dim summaryItem As New GridViewSummaryItem()
summaryItem.Name = "ItemTotal"
summaryItem.Aggregate = GridAggregateFunction.Sum
Dim summaryRowItem As New GridViewSummaryRowItem()
summaryRowItem.Add(summaryItem)
RGV_SaleTransection.SummaryRowsBottom.Add(summaryRowItem)
Private Sub RGV_SaleTransection_GroupSummaryEvaluate(sender As Object, e As GroupSummaryEvaluationEventArgs) Handles RGV_SaleTransection.GroupSummaryEvaluate
RTxt_SubTotal.Text = e.Value
end sub
现在我想对 grid.can 任何人帮助隐藏此摘要行
任何其他方式将同样受到赞赏。
莫妮莎,
您可以使用以下代码片段隐藏摘要行:
For Each summaryRow As GridViewSummaryRowInfo In Me.RadGridView1.MasterView.SummaryRows
summaryRow.MaxHeight = 1
Next
希望适合你的场景。
我已经计算了 radgridview 中的总和并显示文本中的值 box.which 已成功完成。
Dim summaryItem As New GridViewSummaryItem()
summaryItem.Name = "ItemTotal"
summaryItem.Aggregate = GridAggregateFunction.Sum
Dim summaryRowItem As New GridViewSummaryRowItem()
summaryRowItem.Add(summaryItem)
RGV_SaleTransection.SummaryRowsBottom.Add(summaryRowItem)
Private Sub RGV_SaleTransection_GroupSummaryEvaluate(sender As Object, e As GroupSummaryEvaluationEventArgs) Handles RGV_SaleTransection.GroupSummaryEvaluate
RTxt_SubTotal.Text = e.Value
end sub
现在我想对 grid.can 任何人帮助隐藏此摘要行 任何其他方式将同样受到赞赏。
莫妮莎,
您可以使用以下代码片段隐藏摘要行:
For Each summaryRow As GridViewSummaryRowInfo In Me.RadGridView1.MasterView.SummaryRows
summaryRow.MaxHeight = 1
Next
希望适合你的场景。