G
gh
I create the columns for the asp.net datagrid at runtime and populates
them. I have a template column for checkboxs I created at runtime as
well. The user selects the product they want by checking the checkbox,
next to it. In the submit button I loop through the datagrids items and
if checked I will save the product to the cart. The problem is the grid
has no item count when I try to loop through it.
I loop through the rows of the grid right after I populate and add the
rows, in code, to make the checkboxs visible for certain rows and it
works great. Does it have something to do with the postback after
clicking the submit button?
Thanks
them. I have a template column for checkboxs I created at runtime as
well. The user selects the product they want by checking the checkbox,
next to it. In the submit button I loop through the datagrids items and
if checked I will save the product to the cart. The problem is the grid
has no item count when I try to loop through it.
I loop through the rows of the grid right after I populate and add the
rows, in code, to make the checkboxs visible for certain rows and it
works great. Does it have something to do with the postback after
clicking the submit button?
Thanks