Here I am coding how to disable a html checkbox in gridview such that user cannot select or unselect the checkbox. Here I am coding this for disable and stop the operations of the HTML Checkbox control in ASP.Net gridview.

Aspx :

<head runat="server">
    <form id="form1" runat="server">
        <asp:GridView ID="grd_popup_details" HeaderStyle-BackColor="#cccccc" runat="server"
            OnRowDataBound="grd_popup_details_RowDataBound" AutoGenerateColumns="false">
                <asp:TemplateField ItemStyle-Wrap="false" HeaderText="Select">
                          <input id="CHK_CLR" type="checkbox"  runat="server" />
                <asp:BoundField HeaderText="Description" DataField="Description" />


using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Data;
using System.Web.UI.HtmlControls;

namespace TTip
    public partial class pge2 : System.Web.UI.Page
        protected void Page_Load(object sender, EventArgs e)
            SqlConnection con = new SqlConnection("connection string");
            string Query = "select Query";
            SqlDataAdapter da = new SqlDataAdapter(Query, con);
            DataSet DS = new DataSet();
            grd_popup_details.DataSource = DS;

            //method 1
            foreach (GridViewRow row in grd_popup_details.Rows)
                var cb_clr = (HtmlInputCheckBox)row.FindControl("CHK_CLR");
                cb_clr.Disabled = true;

        //method 2
        protected void grd_popup_details_RowDataBound(object sender, GridViewRowEventArgs e)
           e.Row.Cells[0].Attributes["disabled"] = "disabled";