Option number 1
Your Database query should look like this.
Select Cast(IsNull(Downloaded, 0) as bit) as Downloaded From TableName
Option number 2
In Business Logic Layer Convert , Downloaded to false in the case of Null .
Option number 3
protected void GridView_RowDataBound(object sender, System.Web.UI.WebControls.GridViewRowEventArgs e) { CheckBox c = e.Row.FindControl("chkDownloaded"); (((YourClassName)e.Row.DataItem).YourPropertyName) == null ? false : ((YourClassName)e.Row.DataItem).YourPropertyName; }
user1499112
source share