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
4341
Sorting in Grid
posted

We are using Infragistics Version 8.3.20083.2021

In a grid we have following data

 Row No          Description          Alternate          AlternateID
                       ABC                    Base                    1
1                      MNO                  Test                      3
2                      XYZ                    Alternate1              2
3                      AAA                   Alternate1              2
4                      BBB                    Base                    1
5                      CCC                    Base                    1

We want the columns to be sorted as RowNo,AlternateId,Alternate. We do not want the AlternateID row to be visible in the grouping.

For grouping we are using following code :

 

ulGridEstimateDetail.DisplayLayout.Bands(0).SortedColumns.Add(ulGridEstimateDetail.DisplayLayout.Bands(0).Columns(

"RowNo"), False, False

)

ulGridEstimateDetail.DisplayLayout.Bands(0).SortedColumns.Add(ulGridEstimateDetail.DisplayLayout.Bands(0).Columns(

"AlternateID"), False, True

)

ulGridEstimateDetail.DisplayLayout.Bands(0).SortedColumns.Add(ulGridEstimateDetail.DisplayLayout.Bands(0).Columns(

 

 

"Alternate"), False, True

)

ulGridEstimateDetail.DisplayLayout.Bands(0).SortedColumns.Add(ulGridEstimateDetail.DisplayLayout.Bands(0).Columns(

 

"Division"), False, True

)

ulGridEstimateDetail.DisplayLayout.Bands(0).SortedColumns.Add(ulGridEstimateDetail.DisplayLayout.Bands(0).Columns(

 

"SubDivision"), False, True

)

 

 

We have to take the AlternateID column as we want it to be sorted by the ID first and then its Description.


In the initialize layout procedure of the grid we are using the following code

 

 

 

 

 

 

ulGridEstimateDetail.DisplayLayout.Override.GroupByRowDescriptionMask = "[Caption] : [Value]"

 

 

 

Please tell us what can be done so that we can hide the AlternateID Column .

Please find attached an snap shot. We do not want the alternateID Group heading row to be visible.

 

Parents
  • 469350
    Suggested Answer
    Offline posted

    Hi,

    I'm afraid I do not understand what you want here. Your question does not appear to make sense. You want to group by the AlternateID, but not show the AlternateID? I don't understand what that means. what do you want to display in the group by rows for the top level, then?

Reply Children