Re: editing / updating dynamic dgrid
- From: "dirk van waes" <dirk.van.waes@xxxxxxxxxx>
- Date: Fri, 24 Feb 2006 14:00:54 GMT
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.
.
- Follow-Ups:
- Re: editing / updating dynamic dgrid
- From: Darren Kopp
- Re: editing / updating dynamic dgrid
- References:
- editing / updating dynamic dgrid
- From: dirk van waes
- Re: editing / updating dynamic dgrid
- From: Elton Wang
- Re: editing / updating dynamic dgrid
- From: Darren Kopp
- Re: editing / updating dynamic dgrid
- From: Elton Wang
- editing / updating dynamic dgrid
- Prev by Date: Re: editing / updating dynamic dgrid
- Next by Date: DetailsView Update Issues
- Previous by thread: Re: editing / updating dynamic dgrid
- Next by thread: Re: editing / updating dynamic dgrid
- Index(es):
Loading