DataGrid.DataBind effect doesn't last!
-
Hi, I wrote a subclass of DataGrid in which I can fill the grid the way I want it to happen on each page. In this grid I also create some dynamic comboboxes and bind a SelectedItemChanged event to it. When this event fires, I want to put different data in the grid. Now, I've implemented this event by creating a new dataset and dataview and binding that to the Grid. If I step through the code, you can see the right effect. After the DataBind, the numer of items in the grid is exactly the way it should be.. So far, everything is as you would expect. But if I put a breakpoint in the PreRender event and look at the items in the grid, nothing has changed! The content of grid is exactly the way it was BEFORE my BindGrid.... When does this happen, who is doing this, and how do I shut it off? :confused: Structured programming vs. chaotic mind boggling