Hi Dirk,
You can have a page level collection variable, e.g.Hashtable, or Arraylist.
When postback get data from datagrid and put in the collection variable,
then rebind datagrid. In UpdateCommand you can use data from collection
variable.
HTH
[quoted text, click to view] "dirk van waes" <dirk.van.waes@telenet.be> wrote in message
news:ALlLf.275086$_n3.8866953@phobos.telenet-ops.be...
> Hello,
> I have a dynamic datagrid , made and filled by VB code.
> No problem here! But when I try to update my db via this datagrid, Im in
> deep trouble!
> The problem is that when I do a databind on every postback, I loose the
> updated values. When I don't do a databind of the grid on page_load (on
> postback), the event dgName_UpdateCommand is clearly not triggered at all!
> How can I work around this problem? The datagrid needs to be made
> dynamicly, since the data changes every time I use the datagrid
> (=students, depending on the choosen class, partition and period)
> TIA
>
> Dirk
>
>
>
>