williamjda Posted January 22, 2016 at 04:24 PM Report Share #592339 Posted January 22, 2016 at 04:24 PM Amigos Boa Tarde. Alguém poderia me ajuda com esta questão? Como fazer para mover a seleção de um DataGrid para a primeira linha? Encontrei um código em um fórum publicado pelo nosso amigo jpaulino. Mas o código move para a ultima linha do datagrid e eu preciso que ele mova para a primeira quando eu clicar em um botão no formulário. 'MOVE O CURSOR PARA ULTIMA LINHA Me.DataGrid_Dados.CurrentCell = Me.DataGrid_Dados(0, Me.DataGrid_Dados.RowCount - 1) Link to comment Share on other sites More sharing options...
tiago.f Posted January 22, 2016 at 05:21 PM Report Share #592343 Posted January 22, 2016 at 05:21 PM tentaste 'MOVE O CURSOR PARA ULTIMA LINHA Me.DataGrid_Dados.CurrentCell = Me.DataGrid_Dados(0, 0) ? Link to comment Share on other sites More sharing options...
williamjda Posted January 22, 2016 at 05:24 PM Author Report Share #592344 Posted January 22, 2016 at 05:24 PM Obrigado deu certo. Eu estava tentando mas de uma forma diferente. Valeu pela ajuda. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now