Live Chat Icon For mobile
Live Chat Icon

How to display the checkbox checked or unchecked for a bit data type value in the DataBase

Platform: ASP.NET| Category: DataGrid

<asp:DataGrid id='DataGrid1' runat='server'>
<Columns>
<asp:TemplateColumn HeaderText='Discontinued'>
<ItemTemplate>
<asp:CheckBox id='chk1' Runat =server  checked=<%#DataBinder.Eval(Container.DataItem,'Discontinued')%>></asp:CheckBox>
</ItemTemplate>
</asp:TemplateColumn>
</Columns>
</asp:DataGrid>

Share with

Share on twitter
Share on facebook
Share on linkedin