AlternatingItemStyle AFTER datagrid.items(i).visible = false

P

psb

I am re-vamping our ShoppingCart functionality. I am trying to keep from
loading the datagrid unless absolutely necessary.

I have a grid with typcial columns. there is a quantity column that is a
textbox, so that quantities can be changed... if someone puts in 0 for the
quantity, I would like to delete the item from the database and simply hide
the line that was deleted using "dgCart.Items(i).visible = false". When I
do this it screws up the AlternatingItemStyle. Below, after I delete the
whilte line I get two black lines...

--before delete--
BLACK background color line
WHITE background color line
BLACK background color line


--after delete--
BLACK background color line
BLACK background color line

Is there a way to refresh the grid without going back to the db?

thanks,
psb
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top