Re: editing / updating dynamic dgrid



Hi Elton and Darren,
I'll think the solution of Elton is the right one that can help me. I give
it a try.
Darren: The problem was -as Elton daid- that the update-event isn't fired
without the data!

Thanks for your time. Greetings from Belgium
Dirk




"Elton Wang" <elton_wang@xxxxxxxxxxx> schreef in bericht
news:%237KAE8MOGHA.3788@xxxxxxxxxxxxxxxxxxxxxxx
As Dirk menntioned, it's dynamically created datagrid. Without binding
datagrid, it cannot fire update event.


"Darren Kopp" <darrenkopp@xxxxxxxxx> wrote in message
news:1140734938.815707.273370@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
try something like this, it should alleviate postback problems

Private Sub BindGrid()
' binding code
End Sub

and then inside the Page_Load function put...

If Not Page.IsPostBack Then
BindGrid()
End If

and finally, inside your update method, after you have updated the
data, call BindGrid().

Then you won't have problems with postback and losing data.





.


Loading