我已经在该表的gridview中绑定了数据库,该表在第二列和第三列中具有布尔值(真或假)为0和1。当我得到输出浏览器将显示禁用复选框,如果为true,则显示禁用复选框,否则显示禁用复选框。我的问题是是否选中复选框替换了某些图像未选中复选框替换了c#中的某些图像
<asp:GridView ID="gvedition" runat="server" AutoGenerateColumns="True"
CssClass="table table-responsive" OnRowDataBound="gvedition_RowDataBound">
</asp:Gridview>
在c#
protected void bindedition()
{
SqlConnection con = new SqlConnection(str);
DataTable dt = new DataTable();
SqlDataAdapter da = new SqlDataAdapter();
try
{
con.Open();
da = new SqlDataAdapter("usp_edition_comparison", con);
da.Fill(dt);
gvedition.DataSource = dt;
gvedition.DataBind();
}
catch (Exception ex)
{
ex.Message.ToString();
}
finally
{
con.Close();
}
在sql表中
sno feature starter standard
1 master 1 1
2 process menu 1 1
3 master report 0 1
4 audit report 0 1