Tags

,

 

Image

 

To fix it just add data key name in gridview

<asp:GridView
ID=”gvDepartment” runat=”server”
AllowPaging=”True”
AllowCustomPaging=”true”
AutoGenerateColumns=”False”
AllowSorting=”True”
ItemType=”–“
CssClass=”table table-hover table-condensed table-bordered table-striped grid”
GridLines=”None”
DataKeyNames=”ID”
>

Advertisements