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
865
Need to modify group items count displayed for each groupby group
posted

I need to have the extra header row for each group because I use it for the check box which allows user to toggle on / off the check boxes for all items in the group by checking / unchecking the group header checkbox so...

1) I wonder if there is a way to modify that count (down by one in this case)?

2) Is there a better way to handle the toggling on / off of the check boxes for each row in a group that will still be intuitive to the users? I already have the columns disabled and try to handle most things with buttons in order to minimize the complexity of the application. Perhaps there is some way to enable just the Select column and to display a button in the column heading (where the heading 'Select' is in my screen shot)? If I could use an image of a check box without a check mark and then switch to an image of a check mark when clicked (and also check  all the boxes for those rows) then I think that would be intuitive enough! Thoughts? Feasible with wingrid? Properties I'd need to expose, code, links to similar implementation examples etc.?

Thanks,

Allen

Parents
  • 469350
    Verified Answer
    Offline posted

    Hi Allen,

    allenovereem said:
    1) I wonder if there is a way to modify that count (down by one in this case)?

    You can handle the InitializeGroupByRow event and set the Description property on the row to whatever text you like.

    allenovereem said:

    2) Is there a better way to handle the toggling on / off of the check boxes for each row in a group that will still be intuitive to the users? I already have the columns disabled and try to handle most things with buttons in order to minimize the complexity of the application. Perhaps there is some way to enable just the Select column and to display a button in the column heading (where the heading 'Select' is in my screen shot)? If I could use an image of a check box without a check mark and then switch to an image of a check mark when clicked (and also check  all the boxes for those rows) then I think that would be intuitive enough! Thoughts? Feasible with wingrid? Properties I'd need to expose, code, links to similar implementation examples etc.?

    Well, the latest version of the grid has support for checkboxes in the column header. So you could turn on a checkbox in the Select column.

                band.Columns[0].Header.CheckBoxVisibility = HeaderCheckBoxVisibility.Always;
                band.Columns[0].Header.CheckBoxSynchronization = HeaderCheckBoxSynchronization.RowsCollection;

    If you are using an older version, you could still do it, but it would require a CreationFilter and a bunch of coding. You could do it either in the GroupByRow or in the header.

    HOWTO:How can I add a CheckBox to each GroupByRow in the UltraWinGrid?

    HOWTO:How do I add a CheckBox to a WinGrid column header?

     

Reply Children