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
80
WinGrid Drop in Different Group
posted

I have a grid laid out like so.....

Group By Row for Shift #

                Data Row for Vehicle

I have enabled drag and drop and have it working for the Vehicle rows. The issue is that when I drag and drop the a vehicle under another Shift # section and update the Shift # for the Vehicle row the grid doesn't refresh itself to move the vehicle under the correct group based off the new value. I noticed if I remove and readd the grouping that it corrects itself but it then wipes the expansion states of all the rows back to being not expanded which is annoying to the users. Any ideas how I can get it to refresh the grouping without effecting the rows' expansion states???

Thanks

Parents
No Data
Reply
  • 3565
    Suggested Answer
    posted

    Welcome to my world. I face the same issue and I personally think it is a bug. I have to submit a sample proejct for them to play around with to determine what is causing the issue. As a work around I have had to refresh that grid groupings using the following.

    Grid.DisplayLayout.Bands(0).SortedColumns.RefreshSort(True)

    I don't believe this will effect your row expansion states, but you can try it out and see. I have a couple posts dealing with this topic.

Children
No Data