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

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.