Jump to content

Recommended Posts

Posted

caso real possível: ao executares a aplicação é mostrada uma mensagem dizendo qual linha está seleccionada ou quantas linhas do datagridview estão seleccionadas ao mesmo tempo ?

Posted
Private Sub DataGridView1_RowValidating(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellCancelEventArgs) Handles DataGridView1.RowValidating
        If Me.DataGridView1.Rows(e.RowIndex).Selected = True Then
            MsgBox("Está seleccionado")
        Else
            MsgBox("Não está seleccionado")
        End If
    End Sub
Posted

Está resolvido? Mas é uma GridView ou uma DataGridView?

É preciso ter atenção a como se escreve as coisas .... DataGridView é um controlo usado apenas em winforms, GridView é usado apenas em ASP.NET.

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
×
×
  • 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.