davidegironi / advanceddatagridview

A .NET WinForms DataGridView with advanced capabilities
392 stars 123 forks source link

Filtering stops working on second view #52

Closed lstoeckert closed 3 years ago

lstoeckert commented 3 years ago

I'm trying to use the Advanced DataGridView in several different forms (viewing different data) within the same project. When the form is first viewed, the sorting and filtering works great. If I close that form and then relaunch the same form, the grid is there but the sorting and filtering no longer work (the down arrows don't respond). Any idea what I'm doing wrong?

davidegironi commented 3 years ago

Hello @lstoeckert , I've no idea, never encounter this behavior before. If you want you can take a look at dentned, there I use Advanced DataGridView in many forms without problems. https://github.com/davidegironi/dentned. Hope this helps.

lstoeckert commented 3 years ago

Hi Davide,

I’m not sure if I identified the problem or just a way around it. In my program, I was doing a ‘showdialog’ for each form, each time I needed the form. I added a ‘dispose’ for the form after showing it and the next time I showed it again, the ADGV worked fine. So there must have been something left over from the previous showing that was preventing the ADGV to function correctly.

Thanks for your help.

Regards,

Lee

From: Davide Gironi notifications@github.com Sent: Monday, December 7, 2020 1:28 PM To: davidegironi/advanceddatagridview advanceddatagridview@noreply.github.com Cc: Lee Stoeckert Lee@stoeckert.us; Mention mention@noreply.github.com Subject: Re: [davidegironi/advanceddatagridview] Filtering stops working on second view (#52)

Hello @lstoeckert https://github.com/lstoeckert , I've no idea, never encounter this behavior before. If you want you can take a look at dentned, there I use Advanced DataGridView in many forms without problems. https://github.com/davidegironi/dentned. Hope this helps.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/davidegironi/advanceddatagridview/issues/52#issuecomment-740096608 , or unsubscribe https://github.com/notifications/unsubscribe-auth/APD4RNJJBMEIPMJLYXE6VXDSTUNBPANCNFSM4UQ2TYZA . https://github.com/notifications/beacon/APD4RNLRIJSFZFW3DRHHXFLSTUNBPA5CNFSM4UQ2TYZKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFQOPUYA.gif

davidegironi commented 3 years ago

Happy to hear this. Thank you for sharing your experience.