0

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

4
Contributors
4
Replies
24
Views
4 Years
Discussion Span
Last Post by |-|x
0

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)
        {

        }

Edited by ggamble

0

His error ...

'GridView1' fired event RowDeleting which wasn't handled

... or am I missing something?

0

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

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.