hi,
I am adding items in UltraGrid having 3 columns.
Columns are: Adaptation | Name | Description
i have set grouping on 'Adaptation' column.
Also i have set property GroupByRowDescriptionMask = "[value] ([count])"
but when any blank value comes under Adaptation, It groups blank values under one group , and group title text sets to - " " (Count)
For E.g.: " " (2)
I want to avoid grouping for blank values under column "Adaptation" and should not have any group Row title name.
Thanks
Rohit
Rohit,
If you don't want to have any GroupByRow for a certain value, you could use the InitializeGroupByRow event and hide the rows that match your criteria, i.e.:
private void ultraGrid1_InitializeGroupByRow(object sender, Infragistics.Win.UltraWinGrid.InitializeGroupByRowEventArgs e){ if (e.Row.Column.Key == "Adaptation" && e.Row.Value == null) e.Row.Hidden = true;}
-Matt
I'm not sure I understand the question. What exactly do you want to happen to the rows with blank values?
Should they just not show up?
Or do you want to place them in another group?
Or are you simply trying to change the text to something more useful like displaying "(BLANK)" instead of an empty string.
Any of these three options are doable. But which one do you want?
Logic indicates to me that this is unlikely to be possible using this technique.
My approach would be to somehow ensure that the 'blank' grouping either doesn't appear at all (by not adding rows where the adaptation is null) or moving these to the bottom of the list so that the user won't normally see them (by changing the null to something like 'zzz').
Bit of a hack really but practically might be OK.
Hope that helps.
Jerry