DataGrid OnItemDataBound Event
Posted on 2004-10-29
I have a data grid control that lists a bunch of aggregate data against a list of entities. In a case where the entity has 0 in each column i need to remove that row from the grid so it isn't shown.
I understand the datagrid control is only visible from the client side but any documentation I have about the onDataBind event details writing this code to the server side. So this has confused me considerably.
How can I achieve this?
To test an idea I tried this in the HTML (and wrote a little function called removezerorows) but I get a compile error.
<asp:datagrid id="grdBudget" OnItemDataBound="RemoveZeroRows();"
alert('Removing Zero Row');