Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_professional thread: DataGrid Column Collection and Post back


Message #1 by "Montgomery, Aiden" <Aiden.Montgomery@f...> on Thu, 27 Sep 2001 08:26:00 +0100
  Where are you doing "DataGrid.Columns.Add(BoundColumn)"? In order to 
access control AFTER POSTBACK, you need to add server controls 
in "Page_OnInit()" event handler. If you do it in Page_OnLoad(), you won't 
be able to access the BoundColumns you add manually.

  Return to Index