WebForm DataGrid

  • Thread starter Thread starter Ben Cox
  • Start date Start date
B

Ben Cox

I have a DataGrid on a WebForm which has one column added in the design
properties of grid and 6 BoundColumns added in c# code. The grid displays
properly but in the Edit event the Items.Cell.Count is one. When the grid
is displayed the Items.Cell.Count is 7. If anyone has an idea of what might
be happening I can post the code used to create the bound columns.

Ben
 
Ben,
If what you are saying is that the columns you create in code are not
displaying in the edit event when in design mode, that would be correct. Then
when runing the code, the count is 7 as the other columns have now been
created. Prior to the creation of the columns, they would not be accessable,
therefore in design time, they would not be seen in another event.

I am assuming this is what you are refering to. If not, please elaborate
more as I might not be understanding your question.

Rob Lykens
 
Back
Top