Jump to content

DataGridView ganha focus


laboss
 Share

Recommended Posts

Boas ppl, ja ando a bater mal com estas datagrid's 🙂 ... ja me devem estar cheios de aturar tambem  ?

Desta vez o problema consiste no seguinte:

tenho uma datagridview numa tabpage, ele e selecionada quando clicamos no F3, mas ela ganha focus (começa logo a editar a 1º celula), e se eu mudar para a tabpage seguinte da um erro porque nao preenchi o campo na datagridview, existe maneira de selecionar a tabpage sem dar focus na 1º celula?

atribui o atalho do F3 assim:

If e.KeyCode = Keys.F2 Then
      Tabs.SelectedTab = tabContactos
      DataGridViewEx1.Rows(0).Cells(0).Selected = False

Fica aqui um exemplo do programa a correr:

https://www.youtube.com/embed/lX2Tyji6zPg?feature=oembed

Obrigado..

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.