简体   繁体   中英

BindingSource dispose takes too long

I Create a form with a datagridview and 2 bidingsource witch one set as datagridview datasource and another set as comboboxcolumn in datagridview

when I cloase form and Dispose method try to dispose second bindingsource take too long time about 50 seconds

Can any one help me?

I suggest you a simple crazy solution that I used some times
Delete all binding source from form and add them again

I have experience that some times if multiple combo box columns that connect to one bindingsource can reduce dispose time of binding source
for this columns my solution is to set column datasource manualy to datatable that is the DataSource of BindingSource

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM