Are you using a "detail view" that is linked to your gridview?

If so you would need to do have an event tied to the the detail view to
rebind your data:

Protected Sub DetailsView1_ModeChanged(ByVal sender As Object, ByVal e As
System.EventArgs) Handles DetailsView1.ModeChanged
        If DetailsView1.CurrentMode = DetailsViewMode.ReadOnly Then
            Me.GridView1.DataBind()
        End If
    End Sub


Where DetailsView1 is the Form that is the edit form and the GridView1 is
the datagrid.

Hope that helped

Marge



On 9/1/07, mwaqas_shahid <[EMAIL PROTECTED]> wrote:
>
>   hi,
>
> 1) in web application i m using web form for inserting the row into
> database and gridview for showing the data, gridview is bind with
> sqldatasource(Select * from abc).
>
> 2)i manually insert the row into database.
>
> 3)a web form for inserting the row and gridview are both on the same
> web page.
>
> 4) problem is that when i insert the row into database then gridview
> can't show the inserted (new) row.
> 5) i thing the sqldatasource is not updated when i insert the row into
> batabase.
> 6) Please anybody the tell me how can i do this." that new inserted
> row would be show in gridview".
>
> thanks
> Muhammad Waqas Shahid
>
>  
>


[Non-text portions of this message have been removed]

Reply via email to