What is the code needed to show a checkbox in a column of a declared datatable?
In C#:
DataTable dt = new DataTable();
dt.Columns.Add("DeleteFlag");
In ASP:
<asp:CheckBox ID="MyCheckBox" runat="server" Checked='<%# Bind("DeleteFlag") %>'
Enabled="False" />
Error:
Specified cast is not valid.
Troubleshooting tips:
When casting from a number, the value must be a number less than infinity