I have a tabcontrol and there is 2 tabpage on it.
Tab page1 contains datagridview1, and;
Tab page2 contains datagridview2.
In form_load I have datagridview1.ClearSelection() and datagridview2.ClearSelection(), but the clear is only functioning in datagridview1 which is in Tab page1. Any idea how can I clear both datagridview during formload?
I have tried putting it in tabcontrol2_enter and datagridview2.CurrentCell=nothing but it doesn't work.
Aucun commentaire:
Enregistrer un commentaire