so im trying to get a gridview to work! im doing it mannualy

Inline Code Example Here

abre_ligacao()
        Dim sqlqtz As String = "SELECT * FROM cobranca ORDER BY cobranca"
        'MsgBox(sqlatendimento)

        Dim dsqtz As DataSet = GetData(sqlqtz)

        If (dsqtz.Tables.Count > 0) Then
            GridView1.DataSource = dsqtz
            GridView1.DataBind()
        Else
            MsgBox("Não há dados para carregar!")
        End If

        fecha_ligacao()

but i get a error using the delete it says i cant be handled

"Erro de runtime de JavaScript: Sys.WebForms.PageRequestManagerServerErrorException: The GridView 'GridView1' fired event RowDeleting which wasn't handled"

btw, im pretty new with asp, javascript ... be patient with me and help me pls

You have no handler for the RowDeleting event.

This is c#, but you can convert it ...

<asp:GridView ID="GridView1" runat="server" 
                 onrowdeleting="GridView1_RowDeleting">



 protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e)
        {

        }

His error ...

'GridView1' fired event RowDeleting which wasn't handled

... or am I missing something?

Probably he has an event declared in the ASP/HTML code with no corresponding function in the code behind.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.