Unable to bind checkbox to a column (which holds boolean value) in a grid.
I'm creating a list of syncfusion grid columns
List<Column> cols = new List<Column>();
Dictionary<string, object> ReadOnlyDict = new Dictionary<string, object>();
ReadOnlyDict.Add("style", "background-color:#eeeeee");
Adding column of boolean datatype to grid:
cols.Add(new Column() { Field ="ColumnName", HeaderText = "ColumnName", HeaderTooltip ="", Type = "boolean", DisplayAsCheckbox = true, TextAlign = TextAlign.Center, AllowEditing = false, Visible = true, CustomAttributes = ReadOnlyDict});
The grid does display checkbox but it isn't able to bind with the bit datafield. So although the value in database is 0 it is always mapping it as checked.