>So i don't know why i selected rows in main form, after click the button show the option form and finish the checkbox check option , >after run to main function "dataGridView selected rows", it can't detect selected rows.
I'm confused about which Form you're opening with the .ShowDialog(), but I think there's where your problem is. Change it to .Show() instead and it should work.