editing / updating dynamic dgrid

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



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




.



Relevant Pages

  • Re: Dynamically added Linkbutton losing its value
    ... this grid to the row which is in edit so I can change the value of the ... the value after a postback I am getting the old data, ... I have to databind the grid on postback or the grid is empty after a ... conclude that you databing your datagrid on every postback. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Looping over a DataGrid after postback; questions
    ... DataGrid after a postback? ... > There is no need to databind your datagrid to iterate it. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Tough Dynamic DataGrid Problem
    ... DataGrid row, fires up the postback. ... I realize that I need to insure that the dynamic DataGrid is created ... to support the SelectedIndexChanged event on Postback. ... End Sub ...
    (microsoft.public.dotnet.framework.aspnet.datagridcontrol)
  • RE: Looping over a DataGrid after postback; questions
    ... There is no need to databind your datagrid to iterate it. ... > items and postback my page, I can't loop through the DataGridItems unless I ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: disabling viewstate on datagrid
    ... Probably that's the only way to databind the datagrid ... viewstate or it will go back to its original state. ... time of postback. ...
    (microsoft.public.dotnet.framework.aspnet)