Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
35
Avoid grouping on null values..
posted

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

 

 

Parents
No Data
Reply
  • 37774
    posted

    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

Children
No Data