<asp:TemplateField meta:resourcekey="TemplateFieldResource1" > <HeaderTemplate> <center class="royalhead1"> # </center> </HeaderTemplate> <ItemTemplate> <%# Container.DataItemIndex+1 %> </ItemTemplate> <ItemStyle Width="5%" HorizontalAlign="Center" /> </asp:TemplateField>
1 have 7 rows in my grid . i want to hide 2,5 row from grid.after hiding two rows the grid the row number is like that 1,3,4,6,7
after hiding 2 rows row number is not correct