Hi,
You can make enabled false in gridview rowdatabound event.
protected void grdUrgentItem_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
CheckBox chk = (CheckBox )e.Row.FindControl("chkid");
chk.Enabled = false;
}
}
you can make enable true in gridview rowcommand event.
protected void grdUrgentItem_RowCommand(object sender, GridViewCommandEventArgs e)
{
GridViewRow row = (GridViewRow)(((LinkButton)e.CommandSource).NamingContainer);
CheckBox chk = (CheckBox )row.FindControl("chkid");
chk.Enabled = true;
}
Hope it helps.