firstly what r u storing in database when your check box is checked ,i mean tiny int or Boolean ,suppose u r storing as tiny int then u should try like this
Check on row data bound event
protected void gvHardware_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
CheckBox ChkBox = (CheckBox)GridViewName.Rows.FindControl("chkBoxID"));
strCheck = ((DataRowView)e.Row.DataItem)["operation"].ToString();
if(strCheck=="1")
{
ChkBox .Checked=true;
}
}
}
hope this will help u
Thanks