hi,
I would like to group my ultragrid, in the group I want to show 2 columns, but if I put 2 columns, it show 2 bands in the group.
Is it possible to have 2 columns in the same group, in the same level.
thank in advance.
Hi,
I'm afraid I do not understand your question.
Are you talking about grouping two columns together under a group header?
Or are you talking about grouping the grid rows based on duplicate values in a cell, which is called OutlookGroupBy?
Neither of these will cause the grid to create any bands, but OutlookGroupBy does display the rows in a hierarchy with the GroupByRows at the top level and then the data rows as child rows underneath.
Hi
First of all, please excuse my english, I wrote this post very fast, and I translated word to word.
I want to display the provider name, his id and a summary on invoice prices, which depend on the provider.
I tryed, this afternoon with outlookGroupBy, but I had the provider's id and as child his name.
I would like to display the name and the id on the "same" row without need to expand the id to show the name.
Is this post clearer? I hope.
So, is this possible, and how?
Thanks
If I understand you correctly then you are looking to display both Provider Name and Provider ID in the group row. If that's what you are after, then something like this could work:
Private Sub UltraGrid1_InitializeGroupByRow(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinGrid.InitializeGroupByRowEventArgs) Handles UltraGrid1.InitializeGroupByRow
Dim row As Infragistics.Win.UltraWinGrid.UltraGridRow
row = e.Row.GetChild(Infragistics.Win.UltraWinGrid.ChildRow.First)
If Not row Is Nothing Then
e.Row.Description = row.Cells("ProviderName").Text & " - " & row.Cells("ProviderID").Text
End If
End Sub
Trausti
c# equivalent:
private void ultraGridClientFiles_InitializeGroupByRow(object sender, Infragistics.Win.UltraWinGrid.InitializeGroupByRowEventArgs e) { Infragistics.Win.UltraWinGrid.UltraGridRow row; row = e.Row.GetChild(Infragistics.Win.UltraWinGrid.ChildRow.First); if (!(row == null)) { e.Row.Description = row.Cells[1].Text + " - " + row.Cells[3].Text; } }