iterate through ALL rows in a GridView

<asp:TemplateField HeaderText="Select"> <ItemTemplate> <asp:CheckBox ID="chkSelected" runat="server" Checked="false"></asp:CheckBox> </ItemTemplate> </asp:TemplateField> elow code works fine but there is a bug : if Employee object has return 5 rows and i am trying to checked the check box based on the ids but instead its just matching only the last id – it suppose to checked all 5 … Read more