When removing grid items after a delete for instance, I hide the grid item on the server side.
I have the grid in an update panel.
Once the row is removed, the alternating styles is fudged if the user removes an alternate style between two like styles.
Is there a way to get the grid to restyle the items after hiding one?
Or am I forced to rebind? (I tried to just hide the row in an attempt to speed up performance since hiding one row seems like ti should be quicker than rebinding).
Cheers
GridDataItem gdi = (GridDataItem)((sender
as
ImageButton).NamingContainer);
//hide the deleted record
gdi.Visible =
false
;
I have the grid in an update panel.
Once the row is removed, the alternating styles is fudged if the user removes an alternate style between two like styles.
Is there a way to get the grid to restyle the items after hiding one?
Or am I forced to rebind? (I tried to just hide the row in an attempt to speed up performance since hiding one row seems like ti should be quicker than rebinding).
Cheers